Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
jribbink committed Feb 21, 2024
1 parent 04dac99 commit 71c736a
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/build-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,14 @@ jobs:
go-version: '1.20'
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
- uses: wangyoucao577/[email protected]
- name: Determine C compiler
run: |
if [ "${{ matrix.goarch }}" = "arm64" ]; then;
echo "TARGET_CC=aarch64-linux-gnu-gcc" >> $GITHUB_ENV
elif [ "${{ matrix.goarch }}" = "amd64" ]; then;
echo "TARGET_CC=x86_64-linux-gnu-gcc" >> $GITHUB_ENV
fi
- uses: wangyoucao577/[email protected]
env:
MIXPANEL_PROJECT_TOKEN: ${{ secrets.MIXPANEL_PROJECT_TOKEN }}
LILICO_TOKEN: ${{ secrets.LILICO_TOKEN }}
Expand All @@ -36,16 +43,11 @@ jobs:
CGO_ENABLED: 1
CGO_FLAGS: "-O2 -D__BLST_PORTABLE__"
with:

pre_command: |
apt-get update &&
apt-get -y install gcc-aarch64-linux-gnu &&
make generate &&
(if [ "${{ matrix.goarch }}" = "arm64" ]; then;
export CC=aarch64-linux-gnu-gcc
elif [ "${{ matrix.goarch }}" = "amd64" ]; then;
export CC=x86_64-linux-gnu-gcc
fi)
export CC="${TARGET_CC}"
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
Expand Down

0 comments on commit 71c736a

Please sign in to comment.