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 19f6c14
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 @@ -18,6 +18,8 @@ jobs:
with:
neovim: true
- run: go build
env:
CGO_ENABLED: '0'
- run: go test -v -race -coverprofile coverage.txt
- name: Upload coverage to codecov
uses: codecov/codecov-action@v4
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 19f6c14

Please sign in to comment.