Skip to content

Commit

Permalink
ci: fix AArch64 cross-compilation failure
Browse files Browse the repository at this point in the history
While at it, let's harden the workflow against failures caused by
missing or stale APT package lists by updating those lists before
installing packages.
  • Loading branch information
AlexTMjugador committed Oct 22, 2022
1 parent ff60d7d commit 89f3c7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,11 @@ jobs:
target: ${{ matrix.target }}
profile: minimal
components: rust-src, rustfmt, clippy
default: true

- name: 🧰 Install ARM64 cross-compilation toolchain
if: matrix.target == 'aarch64-unknown-linux-gnu'
run: sudo apt install -yq gcc-aarch64-linux-gnu libc6-arm64-cross qemu-user
run: sudo apt update && sudo apt install -yq gcc-aarch64-linux-gnu libc6-arm64-cross qemu-user

- name: 💨 Cache Rust artifacts
uses: Swatinem/rust-cache@v2
Expand Down

0 comments on commit 89f3c7a

Please sign in to comment.