Skip to content

Commit d2c00d5

Browse files
Add more set up steps to release workflow
1 parent c2df169 commit d2c00d5

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff 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 }}

0 commit comments

Comments
 (0)