Skip to content

Commit 3ccb657

Browse files
committed
fix(ci): install aarch64 cross compiler for Miri job
criterion 0.8.2 pulls in the `alloca` dev-dependency, whose build script cross-compiles C. The aarch64 Miri step (`cargo miri test --target aarch64-unknown-linux-gnu`) failed because the runner has no `aarch64-linux-gnu-gcc`. Install gcc-aarch64-linux-gnu so cc-rs can find it.
1 parent ff4dbb4 commit 3ccb657

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/rust.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,14 @@ jobs:
109109
steps:
110110
- uses: actions/checkout@v4
111111

112+
# The `alloca` crate (a dev-dependency pulled in via criterion) has a
113+
# build script that cross-compiles C, which needs an aarch64 C compiler
114+
# for the aarch64 Miri target.
115+
- name: Install aarch64 cross compiler
116+
run: |
117+
sudo apt-get update
118+
sudo apt-get install -y gcc-aarch64-linux-gnu
119+
112120
- name: Install Miri
113121
run: |
114122
rustup toolchain install nightly --component miri

0 commit comments

Comments
 (0)