File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,13 +52,20 @@ jobs:
5252 sudo apt update -y
5353 sudo apt install -y musl-dev musl-tools
5454
55- - name : Set up target (aarch64-unknown-linux-* )
56- if : ${{ startsWith( matrix.target, 'aarch64-unknown-linux-') }}
55+ - name : Set up target (aarch64-unknown-linux-gnu )
56+ if : ${{ matrix.target == 'aarch64-unknown-linux-gnu' }}
5757 run : |
5858 sudo apt update -y
5959 sudo apt install -y gcc-aarch64-linux-gnu
6060 echo CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc >> $GITHUB_ENV
61+
62+ - name : Set up target (aarch64-unknown-linux-musl)
63+ if : ${{ matrix.target == 'aarch64-unknown-linux-musl' }}
64+ run : |
65+ sudo apt update -y
66+ sudo apt install -y gcc-aarch64-linux-gnu
6167 echo CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER=rust-lld >> $GITHUB_ENV
68+ echo CC=aarch64-linux-gnu-gcc >> $GITHUB_ENV
6269
6370 - name : Build
6471 run : cargo build --bins --locked --release --target ${{ matrix.target }}
You can’t perform that action at this time.
0 commit comments