Explicitly set CGO_ENABLED on build (#569)

This commit is contained in:
Hidetake Iwata
2021-06-07 13:04:39 +09:00
committed by GitHub
parent 8a725104e1
commit 82e96fba84

View File

@@ -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