Compare commits

..

3 Commits

Author SHA1 Message Date
mattn
ef83b48ca0 Merge pull request #3 from mattn/copilot/fix-cgo-enabled-windows-builds
[WIP] Fix CGO_ENABLED setting for Windows builds
2026-01-17 16:29:19 +09:00
copilot-swe-agent[bot]
766598eee6 Set CGO_ENABLED=0 for Windows builds to fix cross-compilation
Co-authored-by: mattn <10111+mattn@users.noreply.github.com>
2026-01-17 07:28:30 +00:00
copilot-swe-agent[bot]
413b5cf161 Initial plan 2026-01-17 07:26:27 +00:00

View File

@@ -36,6 +36,7 @@ jobs:
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
CGO_ENABLED: ${{ matrix.goos == 'windows' && '0' || '1' }}
run: |
go build -ldflags "-X main.version=${{ github.ref_name }}" -o nak-${{ github.ref_name }}-${{ matrix.goos }}-${{ matrix.goarch }}
- name: Upload Release Asset