diff --git a/.github/workflows/build-release.yaml b/.github/workflows/build-release.yaml index a4553cfc9..58387fb4c 100644 --- a/.github/workflows/build-release.yaml +++ b/.github/workflows/build-release.yaml @@ -17,8 +17,6 @@ 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 @@ -30,12 +28,10 @@ jobs: - name: Set CC environment variable for cross-compilation run: | if [ "${{ matrix.goarch }}" = "arm64" ]; then - echo "CC=/usr/bin/aarch64-linux-gnu-gcc" >> $GITHUB_ENV + echo "CC=aarch64-linux-gnu-gcc" >> $GITHUB_ENV elif [ "${{ matrix.goarch }}" = "amd64" ]; then echo "CC=x86_64-linux-gnu-gcc" >> $GITHUB_ENV fi - which aarch64-linux-gnu-gcc - echo "PATH=/usr/aarch64-linux-gnu/bin:$PATH" >> $GITHUB_ENV - uses: wangyoucao577/go-release-action@v1.40 env: MIXPANEL_PROJECT_TOKEN: ${{ secrets.MIXPANEL_PROJECT_TOKEN }} @@ -47,7 +43,9 @@ jobs: CGO_ENABLED: 1 CGO_FLAGS: "-O2 -D__BLST_PORTABLE__" with: - pre_command: make generate + pre_command: | + apt-get -y install gcc-aarch64-linux-gnu + make generate github_token: ${{ secrets.GITHUB_TOKEN }} goos: ${{ matrix.goos }} goarch: ${{ matrix.goarch }}