mirror of
https://github.com/fiatjaf/nak.git
synced 2026-01-25 03:48:52 +00:00
Merge pull request #3 from mattn/copilot/fix-cgo-enabled-windows-builds
[WIP] Fix CGO_ENABLED setting for Windows builds
This commit is contained in:
1
.github/workflows/release-cli.yml
vendored
1
.github/workflows/release-cli.yml
vendored
@@ -36,6 +36,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GOOS: ${{ matrix.goos }}
|
GOOS: ${{ matrix.goos }}
|
||||||
GOARCH: ${{ matrix.goarch }}
|
GOARCH: ${{ matrix.goarch }}
|
||||||
|
CGO_ENABLED: ${{ matrix.goos == 'windows' && '0' || '1' }}
|
||||||
run: |
|
run: |
|
||||||
go build -ldflags "-X main.version=${{ github.ref_name }}" -o nak-${{ github.ref_name }}-${{ matrix.goos }}-${{ matrix.goarch }}
|
go build -ldflags "-X main.version=${{ github.ref_name }}" -o nak-${{ github.ref_name }}-${{ matrix.goos }}-${{ matrix.goarch }}
|
||||||
- name: Upload Release Asset
|
- name: Upload Release Asset
|
||||||
|
|||||||
Reference in New Issue
Block a user