Skip to content

Commit

Permalink
use source script
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarak Ben Youssef committed Feb 21, 2024
1 parent d8eda44 commit 403eeae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
8 changes: 4 additions & 4 deletions pre_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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__"\"
GO111MODULE=on
CGO_ENABLED=1
CC=${C_COMP}
CGO_FLAGS=\""-O2 -D__BLST_PORTABLE__"\"

0 comments on commit 403eeae

Please sign in to comment.