Giter Club home page Giter Club logo

drcom-go's People

Contributors

cyp0633 avatar dependabot[bot] avatar sleep1223 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

sleep1223

drcom-go's Issues

添加更多的编译参数以对路由器(mt7621)的支持

.github/workflows/build.yml

          - goos: linux
            goarch: mips
          - goos: linux
            goarch: mipsle
            gomips: softfloat # mt7621
    env:
      GOOS: ${{ matrix.goos }}
      GOARCH: ${{ matrix.goarch }}
      GOMIPS: ${{ matrix.gomips}}

完整文件链接: workflows/build.yml

name: Build

on:
  workflow_dispatch:
  release:
    types: [published]
  push:
    branches:
      - master
    paths:
      - "**/*.go"
      - "**/*.mod"
      - "**/*.sum"
      - "**/*.yml"
  pull_request:
    branches:
      - master
    paths:
      - "**/*.go"
      - "**/*.mod"
      - "**/*.sum"
      - "**/*.yml"
jobs:
  build:
    runs-on: ubuntu-latest
    permissions:
      contents: write
    strategy:
      fail-fast: true
      matrix:
        goos: [windows, freebsd, openbsd, linux, dragonfly, darwin]
        goarch: [amd64, 386]
        exclude:
          - goarch: 386
            goos: darwin
          - goarch: 386
            goos: dragonfly
        include:
          - goos: darwin
            goarch: arm64
          - goos: windows
            goarch: arm64
          - goos: linux
            goarch: riscv64
          - goos: linux
            goarch: arm64
          - goos: linux
            goarch: loong64
          - goos: linux
            goarch: mips
          - goos: linux
            goarch: mipsle
            gomips: softfloat # mt7621
          - goos: linux
            goarch: mips64
          - goos: linux 
            goarch: mips64le
    env:
      GOOS: ${{ matrix.goos }}
      GOARCH: ${{ matrix.goarch }}
      GOMIPS: ${{ matrix.gomips}}
      GO111MODULE: on
      CGO_ENABLED: 0
    steps:
      - name: Checkout
        uses: actions/checkout@v3
      - name: Setup Go
        uses: actions/setup-go@v3
        with:
          go-version: 1.20.1
          check-latest: true
      - name: Build
        run: go build -o bin/${{ matrix.goos }}_${{ matrix.goarch }}/main
      - name: Upload
        uses: actions/upload-artifact@v3
        with:
          name: ${{ matrix.goos }}_${{ matrix.goarch }}
          path: bin/${{ matrix.goos }}_${{ matrix.goarch }}/main
          retention-days: 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.