Skip to content

Commit

Permalink
rmm: ci: Setup the MIRI test
Browse files Browse the repository at this point in the history
Signed-off-by: Sangwan Kwon <[email protected]>
  • Loading branch information
bitboom committed Jul 2, 2024
1 parent b0b468d commit f68f75c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,9 @@ jobs:
- name: Run unsafe analyzer
run: ./scripts/unsafe-analyzer

- name: Run MIRI test
run: ./scripts/tests/miri.sh

- uses: actions/upload-artifact@v3
with:
name: tools
Expand Down
2 changes: 2 additions & 0 deletions scripts/init-unsafe-analysis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ TOOL=$ROOT/third-party/cargo-geiger

$HERE/deps/rust.sh

rustup component add --toolchain nightly-2024-04-21-x86_64-unknown-linux-gnu miri

git submodule update --init $TOOL
cargo +stable install cargo-geiger --force --locked \
--path $TOOL/cargo-geiger \
Expand Down
13 changes: 13 additions & 0 deletions scripts/tests/miri.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

ROOT=$(git rev-parse --show-toplevel)

mkdir -p $ROOT/out

cd $ROOT/rmm

MIRIFLAGS="-Zmiri-disable-stacked-borrows" cargo miri test --target aarch64-unknown-linux-gnu

if [ $? -ne 0 ]; then
exit 1
fi

0 comments on commit f68f75c

Please sign in to comment.