Skip to content

Commit

Permalink
ci: add safety checking with Miri
Browse files Browse the repository at this point in the history
  • Loading branch information
willothy committed Nov 3, 2024
1 parent c47f3ef commit c9a198c
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,27 @@ env:
CARGO_TERM_COLOR: always

jobs:
build:
tests:
name: "Run tests"

runs-on: ubuntu-latest
runs-on: depot-latest

steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose

miri:
name: "Miri"
runs-on: depot-latest
steps:
- uses: actions/checkout@v4
- name: Install Miri
run: |
rustup toolchain install nightly --component miri
rustup override set nightly
cargo miri setup
- name: Test with Miri
run: cargo miri test

0 comments on commit c9a198c

Please sign in to comment.