Skip to content

Commit

Permalink
disable cgo on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysd committed Nov 14, 2024
1 parent b4de51b commit a32523a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
env:
CGO_ENABLED: '0'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
Expand Down
8 changes: 8 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,26 @@ builds:
- id: macos
goos: [darwin]
goarch: [amd64, arm64]
env:
- CGO_ENABLED=0

- id: linux
goos: [linux]
goarch: [386, arm, amd64, arm64]
env:
- CGO_ENABLED=0

- id: windows
goos: [windows]
goarch: [amd64, arm64]
env:
- CGO_ENABLED=0

- id: freebsd
goos: [freebsd]
goarch: [386, amd64]
env:
- CGO_ENABLED=0

archives:
- <<: &archives_defaults
Expand Down

0 comments on commit a32523a

Please sign in to comment.