Skip to content

Commit

Permalink
ci: fix linker env var
Browse files Browse the repository at this point in the history
  • Loading branch information
7sDream committed Nov 16, 2023
1 parent d56361e commit b6127ce
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
platform: darwin
arch: arm64
libc: system
name: Build for ${{ matrix.platform }}-${{ matrix.arch }}
name: Build for ${{ matrix.platform }}-${{ matrix.arch }}-${{ matrix.libc }}
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
Expand All @@ -83,13 +83,15 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install gcc-aarch64-linux-gnu
echo "CARGO_TARGET_${{ matrix.rust-target }}_LINKER=aarch64-linux-gnu-gcc" >> "$GITHUB_ENV"
UPPER_TARGET=(echo ${{ matrix.rust-target }} | tr '[a-z]-' '[A-Z]_')
echo "CARGO_TARGET_${UPPER_TARGET}_LINKER=aarch64-linux-gnu-gcc" >> "$GITHUB_ENV"
- name: Install ARM target toolchain
if: matrix.platform == 'linux' && matrix.arch == 'armhf'
run: |
sudo apt-get update
sudo apt-get install gcc-arm-linux-gnueabihf
echo "CARGO_TARGET_${{ matrix.rust-target }}_LINKER=arm-linux-gnueabihf-gcc" >> "$GITHUB_ENV"
UPPER_TARGET=(echo ${{ matrix.rust-target }} | tr '[a-z]-' '[A-Z]_')
echo "CARGO_TARGET_${UPPER_TARGET}_LINKER=arm-linux-gnueabihf-gcc" >> "$GITHUB_ENV"
- name: Install musl toolchain
if: matrix.platform == 'linux' && matrix.libc == 'musl'
run: |
Expand Down

0 comments on commit b6127ce

Please sign in to comment.