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