File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,11 +45,16 @@ jobs:
4545 rustup component add llvm-tools-preview --toolchain stable
4646 rustup component add rust-std-${{ matrix.target }} --toolchain stable
4747
48- - name : Set up Rust cache
49- uses : swatinem/rust-cache@v2
50- with :
51- cache-on-failure : true
52- save-if : ${{ github.ref == 'refs/heads/main' }}
48+ - name : Set up target (*-musl)
49+ if : ${{ endsWith(matrix.target, '-musl') }}
50+ run : apt install -y musl-dev musl-tools
51+
52+ - name : Set up target (aarch64-unknown-linux-musl)
53+ if : ${{ matrix.target == 'aarch64-unknown-linux-musl' }}
54+ run : |
55+ apt install -y gcc-aarch64-linux-gnu
56+ echo CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER=rust-lld >> $GITHUB_ENV
57+ echo CC=aarch64-linux-gnu-gcc >> $GITHUB_ENV
5358
5459 - name : Build
5560 run : cargo build --bins --locked --release --target ${{ matrix.target }}
You can’t perform that action at this time.
0 commit comments