From 19f6c14e07d15a74a04cea6e67cc0dc30d659485 Mon Sep 17 00:00:00 2001 From: rhysd Date: Thu, 14 Nov 2024 11:32:40 +0900 Subject: [PATCH] disable cgo on CI --- .github/workflows/ci.yml | 2 ++ .goreleaser.yaml | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 60d76c5..8567224 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 4ffae67..35d2d7a 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -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