Skip to content

Commit

Permalink
Update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielleHuisman committed Oct 16, 2024
1 parent 24d312c commit 9102106
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,23 +46,18 @@ jobs:
rustup component add llvm-tools-preview --toolchain stable
rustup component add rust-std-${{ matrix.target }} --toolchain stable
- name: Set up target (aarch64-unknown-linux-*)
if: ${{ startsWith(matrix.target, 'aarch64-unknown-linux-') }}
run: |
sudo apt update -y
sudo apt install -y gcc-aarch64-linux-gnu
- name: Set up target (*-musl)
if: ${{ endsWith(matrix.target, '-musl') }}
run: |
sudo apt update -y
sudo apt install -y musl-dev musl-tools
- name: Set up target (aarch64-unknown-linux-musl)
if: ${{ matrix.target == 'aarch64-unknown-linux-musl' }}
- name: Set up target (aarch64-unknown-linux-gnu)
if: ${{ matrix.target == 'aarch64-unknown-linux-gnu' }}
run: |
echo CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER=rust-lld >> $GITHUB_ENV
echo CC=aarch64-linux-gnu-gcc >> $GITHUB_ENV
sudo apt update -y
sudo apt install -y gcc-aarch64-linux-gnu
echo CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc >> $GITHUB_ENV
- name: Build
run: cargo build --bins --locked --release --target ${{ matrix.target }}
Expand Down

0 comments on commit 9102106

Please sign in to comment.