Skip to content

Commit e904b9f

Browse files
committed
CI: Test w/ Memory Sanitizer on AArch64 Linux.
1 parent c5b35fd commit e904b9f

1 file changed

Lines changed: 18 additions & 2 deletions

File tree

.github/workflows/tests.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,24 @@ jobs:
139139
- run: cargo test --target=x86_64-win7-windows-msvc -Z build-std --features=std
140140
- run: cargo test --target=i686-win7-windows-msvc -Z build-std --features=std
141141

142-
sanitizer:
143-
name: Sanitizer
142+
sanitizer-linux-aarch64:
143+
name: Sanitizer Linux AArch64
144+
# MemorySanitizer won't run in QEMU so we can't run it in cross:
145+
# https://github.com/llvm/llvm-project/issues/65144
146+
runs-on: ubuntu-24.04-arm
147+
steps:
148+
- uses: actions/checkout@v4
149+
- uses: dtolnay/rust-toolchain@master
150+
with:
151+
toolchain: nightly-2025-06-01
152+
components: rust-src
153+
- env:
154+
RUSTFLAGS: -Dwarnings -Zsanitizer=memory
155+
RUSTDOCFLAGS: -Dwarnings -Zsanitizer=memory
156+
run: cargo test -Zbuild-std --target=aarch64-unknown-linux-gnu
157+
158+
sanitizer-linux-x86_64:
159+
name: Sanitizer Linux x86_64
144160
runs-on: ubuntu-24.04
145161
steps:
146162
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)