Skip to content

Commit

Permalink
env condition
Browse files Browse the repository at this point in the history
  • Loading branch information
MXWXZ committed Aug 30, 2024
1 parent 9456f44 commit e0f7563
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,14 @@ jobs:
shell: bash
run: |
echo "${{ steps.protoc-install.outputs.path }}" >> $GITHUB_PATH
- name: Update gcc
if: ${{ matrix.platform.os == 'ubuntu-20.04'}}
shell: bash
run: |
echo "CC=gcc-10" >> $GITHUB_ENV
echo "CXX=g++-10" >> $GITHUB_ENV
- name: Build binary
uses: houseabsolute/actions-rust-cross@v0
env:
CC: gcc-10
CXX: g++-10
with:
command: "both"
target: ${{ matrix.platform.target }}
Expand Down

0 comments on commit e0f7563

Please sign in to comment.