From 89f3c7a9e2461ca4eb2a44ad355d75058db41011 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Gonz=C3=A1lez?= Date: Sat, 22 Oct 2022 12:55:18 +0200 Subject: [PATCH] ci: fix AArch64 cross-compilation failure 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. --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b990404..c3b5162 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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