Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ jobs:
os: ubuntu-latest
rust: 1.57.0

- make:
task: miri
install-miri: true
os: ubuntu-latest
rust: nightly

# Example does not cover various envs. Should be done in test.
- make:
task: example-run
Expand Down Expand Up @@ -112,6 +118,12 @@ jobs:
chmod +x $HOME/.local/bin/cargo-deadlinks
cargo deadlinks --version

- name: Install Miri
if: ${{ matrix.make.install-miri }}
run: |
rustup toolchain install nightly --component miri
cargo +nightly miri setup

- name: Install mlc
if: ${{ matrix.make.install-mlc }}
env:
Expand Down
6 changes: 6 additions & 0 deletions Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ script = ['''
RUSTFLAGS='-D warnings' cargo test --workspace --all-targets --all-features
''']

[tasks.miri]
script = ['''
#!/usr/bin/env bash -eux
RUSTFLAGS='-D warnings' MIRIFLAGS="-Zmiri-disable-isolation" cargo +nightly miri test --workspace --all-targets --all-features
''']

[tasks.example-build]
dependencies = ["build"]
script = ['''
Expand Down