Merge pull request #289 from artichoke/dev/lopopolo-bump #819
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Miri | |
"on": | |
push: | |
branches: | |
- trunk | |
pull_request: | |
branches: | |
- trunk | |
schedule: | |
- cron: "0 0 * * WED" | |
jobs: | |
miri: | |
name: Test with Miri | |
runs-on: ubuntu-latest | |
env: | |
RUST_BACKTRACE: 1 | |
MIRIFLAGS: "-Zmiri-strict-provenance -Zmiri-symbolic-alignment-check -Zrandomize-layout" | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
- name: Install Rust toolchain | |
uses: artichoke/setup-rust/[email protected] | |
with: | |
toolchain: nightly | |
- name: Miri setup | |
run: cargo miri setup | |
- name: Miri test compile | |
run: cargo miri test --no-run | |
- name: Test unsafe code with Miri | |
run: cargo miri test --test leak_drop |