From eaff044a1305aacc00dfbf0fb0ee74c105063cd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Bernier?= Date: Sat, 20 Sep 2025 22:19:05 -0400 Subject: [PATCH] Run miri in CI --- .github/workflows/base62.yml | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/.github/workflows/base62.yml b/.github/workflows/base62.yml index 16ac241..438c841 100644 --- a/.github/workflows/base62.yml +++ b/.github/workflows/base62.yml @@ -42,7 +42,9 @@ jobs: with: toolchain: ${{ matrix.rust }} - uses: Swatinem/rust-cache@v2 - - uses: taiki-e/install-action@nextest + - uses: taiki-e/install-action@v2 # Updated to v2 + with: + tool: nextest - name: Run tests (no_std) run: cargo nextest run --no-default-features - name: Run tests (default/alloc) @@ -56,6 +58,29 @@ jobs: - name: Run doc tests (std) run: cargo test --doc --features std + miri: + name: Miri + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install Rust nightly and miri + uses: dtolnay/rust-toolchain@nightly + with: + components: miri + - uses: taiki-e/install-action@v2 + with: + tool: nextest + - name: Setup miri + run: cargo miri setup + - name: Run tests under miri with nextest (no_std) + run: cargo miri nextest run --no-default-features + - name: Run tests under miri with nextest (all features) + run: cargo miri nextest run --all-features + - name: Run doctests under miri (no_std) + run: cargo miri test --doc --no-default-features + - name: Run doctests under miri (all features) + run: cargo miri test --doc --all-features + fmt: name: Rustfmt runs-on: ubuntu-latest