update makefile #13
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Crosscompile | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - main | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| crosscompile: | |
| name: Crosscompile on ubuntu-latest | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| check-latest: true | |
| cache: true | |
| - name: Crosscompile | |
| env: | |
| CGO_ENABLED: 0 | |
| GO111MODULE: on | |
| run: | | |
| sudo sysctl net.ipv6.conf.all.disable_ipv6=0 | |
| sudo sysctl net.ipv6.conf.default.disable_ipv6=0 | |
| make crosscompile |