Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
jribbink committed Feb 21, 2024
1 parent 0ee8837 commit 4914f89
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/build-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,14 @@ jobs:
go-version: '1.20'
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
- name: Set CC environment variable for cross-compilation
- name: Set go compiler based on target architecture
run: |
if [ "${{ matrix.goarch }}" = "arm64" ]; then
echo "CC=aarch64-linux-gnu-gcc" >> $GITHUB_ENV
elif [ "${{ matrix.goarch }}" = "amd64" ]; then
echo "CC=x86_64-linux-gnu-gcc" >> $GITHUB_ENV
fi
echo $GOGCCFLAGS
- uses: wangyoucao577/[email protected]
env:
MIXPANEL_PROJECT_TOKEN: ${{ secrets.MIXPANEL_PROJECT_TOKEN }}
Expand All @@ -42,9 +43,13 @@ jobs:
COMMIT: ${{ github.sha }}
CGO_ENABLED: 1
CGO_FLAGS: "-O2 -D__BLST_PORTABLE__"
GOGCCFLAGS: ${{ env.GOGCCFLAGS }}
with:
pre_command: apt-get update && apt-get -y install gcc-aarch64-linux-gnu && make generate && unset GOGCCFLAGS
pre_command: |
apt-get update &&
apt-get -y install gcc-aarch64-linux-gnu &&
make generate &&
echo $GOGCCFLAGS &&
unset GOGCCFLAGS
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
Expand Down

0 comments on commit 4914f89

Please sign in to comment.