Explorar o código

add cgo enabled to github action

Alexander Belanger %!s(int64=5) %!d(string=hai) anos
pai
achega
c91b241ef6
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      .github/workflows/release.yaml

+ 3 - 0
.github/workflows/release.yaml

@@ -92,6 +92,7 @@ jobs:
         env:
           GOOS: linux
           GOARCH: amd64
+          CGO_ENABLED: 1
       # Note: we have to zip all binaries before uploading them as artifacts --
       # without this step, the binaries will be uploaded but the file metadata will
       # be listed as plaintext after downloading the artifact in a later step
@@ -112,6 +113,7 @@ jobs:
         env:
           GOOS: darwin
           GOARCH: amd64
+          CGO_ENABLED: 1
       - name: Zip Darwin binaries
         run: |
           mkdir -p ./release/darwin
@@ -127,6 +129,7 @@ jobs:
         env:
           GOOS: windows
           GOARCH: amd64
+          CGO_ENABLED: 1
       - name: Zip Windows binaries
         run: |
           mkdir -p ./release/windows