From 82e96fba840f9ca5f9ffba41846bb2cbf4a6175d Mon Sep 17 00:00:00 2001 From: Hidetake Iwata Date: Mon, 7 Jun 2021 13:04:39 +0900 Subject: [PATCH] Explicitly set CGO_ENABLED on build (#569) --- .github/workflows/go.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index efcb9326..471ec8e4 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -82,6 +82,7 @@ jobs: - os: ubuntu-latest GOOS: linux GOARCH: amd64 + CGO_ENABLED: 0 # https://github.com/int128/kubelogin/issues/567 - os: ubuntu-latest GOOS: linux GOARCH: arm64 @@ -91,6 +92,7 @@ jobs: - os: macos-latest GOOS: darwin GOARCH: amd64 + CGO_ENABLED: 1 # https://github.com/int128/kubelogin/issues/249 - os: macos-latest GOOS: darwin GOARCH: arm64 @@ -101,6 +103,7 @@ jobs: env: GOOS: ${{ matrix.platform.GOOS }} GOARCH: ${{ matrix.platform.GOARCH }} + CGO_ENABLED: ${{ matrix.platform.CGO_ENABLED }} steps: - uses: actions/checkout@v2 - uses: actions/setup-go@v2