فهرست منبع

add cgo enabled to github action

Alexander Belanger 5 سال پیش
والد
کامیت
c91b241ef6
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  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