From 2ce8b75b3f8bade77a5d4db3dfe13d54bfabdee8 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Fri, 27 Nov 2026 17:51:52 -0800 Subject: [PATCH] ci: refresh the apt index before installing musl and cross toolchains (#13075) The runner image's package index can name versions the mirrors have already dropped, so apt-get install fails with a 404 on the first security update after the image was built. Co-authored-by: Claude Opus 5.5 --- .github/actions/rust-musl-target/action.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/actions/rust-musl-target/action.yml b/.github/actions/rust-musl-target/action.yml index 2acc844fd5..e2a19e1fc6 100644 --- a/.github/actions/rust-musl-target/action.yml +++ b/.github/actions/rust-musl-target/action.yml @@ -16,6 +16,7 @@ runs: if: inputs.target == 'x86_64-unknown-linux-musl' shell: bash run: | + sudo apt-get update sudo apt-get install -y musl-tools # C deps (aws-lc-sys) must compile against musl headers, not the host # gcc's glibc headers — glibc's C23 redirects (__isoc23_sscanf, @@ -26,6 +27,7 @@ runs: if: inputs.target == 'aarch64-unknown-linux-musl' shell: bash run: | + sudo apt-get update sudo apt-get install -y gcc-aarch64-linux-gnu echo "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER=aarch64-linux-gnu-gcc" >> "$GITHUB_ENV" # Disable glibc fortify source — its __memcpy_chk etc. symbols don't exist in musl