diff --git a/.github/workflows/build-release.yaml b/.github/workflows/build-release.yaml index 0851a12a0..51b1e0b32 100644 --- a/.github/workflows/build-release.yaml +++ b/.github/workflows/build-release.yaml @@ -32,6 +32,7 @@ jobs: elif [ "${{ matrix.goarch }}" = "amd64" ]; then echo "CC=x86_64-linux-gnu-gcc" >> $GITHUB_ENV fi + echo "GOGCCFLAGS=" >> $GITHUB_ENV - uses: wangyoucao577/go-release-action@v1.40 env: MIXPANEL_PROJECT_TOKEN: ${{ secrets.MIXPANEL_PROJECT_TOKEN }} @@ -42,8 +43,9 @@ jobs: COMMIT: ${{ github.sha }} CGO_ENABLED: 1 CGO_FLAGS: "-O2 -D__BLST_PORTABLE__" + CGO_CFLAGS: "-O2 -D__BLST_PORTABLE__" with: - pre_command: apt-get update && apt-get -y install gcc-aarch64-linux-gnu && make generate + pre_command: apt-get update && apt-get -y install gcc-aarch64-linux-gnu && make generate && export CGO_ENABLED=1 && export CGO_FLAGS="-O2 -D__BLST_PORTABLE__" && export CGO_CFLAGS="-O2 -D__BLST_PORTABLE__" && export GOGCCFLAGS="" github_token: ${{ secrets.GITHUB_TOKEN }} goos: ${{ matrix.goos }} goarch: ${{ matrix.goarch }}