From cdfca3102a2076e3d4e55985e6ab1a50a4131c04 Mon Sep 17 00:00:00 2001 From: mzz2017 <2017@duck.com> Date: Thu, 16 Feb 2023 13:05:07 +0800 Subject: [PATCH] chore(ci): add CGO_ENABLED=0 --- .github/workflows/release.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8daf24f..88cd387 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -98,7 +98,11 @@ jobs: - name: Build dae run: | mkdir -p ./build/ - make OUTPUT=build/dae-$ASSET_NAME VERSION=${{ steps.get_version.outputs.VERSION }} + export CGO_ENABLED=0 + export GOFLAGS="-buildmode=pie -trimpath -modcacherw" + export OUTPUT=build/dae-$ASSET_NAME + export VERSION=${{ steps.get_version.outputs.VERSION }} + make - name: Smoking test if: matrix.goarch == 'amd64'