Skip to content

Commit

Permalink
fix buildrelease
Browse files Browse the repository at this point in the history
  • Loading branch information
jribbink committed Feb 20, 2024
1 parent ae26380 commit 2dcee85
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/build-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
- goarch: arm64
goos: windows
steps:
- name: Install dependencies
run: sudo apt-get update && sudo apt-get -y install apt-utils gcc-aarch64-linux-gnu
- uses: actions/checkout@v3
- name: Codebase security check
continue-on-error: true
Expand All @@ -25,6 +27,13 @@ jobs:
go-version: '1.20'
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
- name: Set CC environment variable for cross-compilation
run: |
if [ "${{ matrix.goarch }}" = "arm64" ]; then
echo "::set-env name=CC::aarch64-linux-gnu-gcc"
elif [ "${{ matrix.goarch }}" = "amd64" ]; then
echo "::set-env name=CC::x86_64-linux-gnu-gcc"
fi
- uses: wangyoucao577/[email protected]
env:
MIXPANEL_PROJECT_TOKEN: ${{ secrets.MIXPANEL_PROJECT_TOKEN }}
Expand All @@ -33,6 +42,8 @@ jobs:
BUILD_TIME: $(date --iso-8601=seconds)
VERSION: ${{github.ref_name}}
COMMIT: ${{ github.sha }}
CGO_ENABLED: 1
CGO_FLAGS: "-O2 -D__BLST_PORTABLE__"
with:
pre_command: make generate
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 2dcee85

Please sign in to comment.