From 403eeae276200a4f21e010e9d02bc91104175b0b Mon Sep 17 00:00:00 2001 From: Tarak Ben Youssef Date: Tue, 20 Feb 2024 21:06:26 -0600 Subject: [PATCH] use source script --- .github/workflows/build-release.yaml | 2 +- pre_build.sh | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-release.yaml b/.github/workflows/build-release.yaml index b7e59859a..b7801897c 100644 --- a/.github/workflows/build-release.yaml +++ b/.github/workflows/build-release.yaml @@ -34,7 +34,7 @@ jobs: VERSION: ${{github.ref_name}} COMMIT: ${{ github.sha }} with: - pre_command: make generate && make install-cross-build-tools && sh pre_build.sh + pre_command: make generate && make install-cross-build-tools && source pre_build.sh github_token: ${{ secrets.GITHUB_TOKEN }} goos: ${{ matrix.goos }} goarch: ${{ matrix.goarch }} diff --git a/pre_build.sh b/pre_build.sh index aee27ec72..25ee3141c 100644 --- a/pre_build.sh +++ b/pre_build.sh @@ -12,7 +12,7 @@ elif [ "${INPUT_GOARCH}" = "amd64" ]; then C_COMP="x86_64-linux-gnu-gcc" fi -export GO111MODULE=on -export CGO_ENABLED=1 -export CC=${C_COMP} -export CGO_FLAGS=\""-O2 -D__BLST_PORTABLE__"\" \ No newline at end of file +GO111MODULE=on +CGO_ENABLED=1 +CC=${C_COMP} +CGO_FLAGS=\""-O2 -D__BLST_PORTABLE__"\"