Skip to content

Commit

Permalink
Run cargo-careful in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed May 19, 2024

Verified

This commit was signed with the committer’s verified signature.
mikaelbr Mikael Brevik
1 parent 2b06585 commit 120a6dd
Showing 2 changed files with 21 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -175,6 +175,18 @@ jobs:
- name: miri
run: ci/miri.sh

# Run cargo-careful.
careful:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust
run: rustup toolchain install nightly --component rust-src && rustup default nightly
- name: Install cargo-careful
run: cargo install cargo-careful --locked --debug
- name: Run cargo-careful
run: ./ci/careful.sh

# Run sanitizers.
san:
runs-on: ubuntu-latest
@@ -233,6 +245,7 @@ jobs:
- rustfmt
# - clippy
- miri
- careful
- san
- loom
- docs
8 changes: 8 additions & 0 deletions ci/careful.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
set -euxo pipefail
IFS=$'\n\t'
cd "$(dirname "$0")"/..

export RUSTFLAGS="${RUSTFLAGS:-} -Z randomize-layout"

cargo careful test --all --all-features --exclude benchmarks -- --test-threads=1

0 comments on commit 120a6dd

Please sign in to comment.