-
Notifications
You must be signed in to change notification settings - Fork 78
67 lines (59 loc) · 1.8 KB
/
miri.yml
File metadata and controls
67 lines (59 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: "Miri"
on:
push:
branches:
- "main"
- "forks/*"
- release-*.*
pull_request:
branches:
- "main"
- "v*.*.*-rc"
- release-*.*
schedule:
# Run weekly on Monday at 00:00 UTC
- cron: '0 0 * * 1'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
env:
RUST_TOOLCHAIN_NIGHTLY: nightly-2025-02-20
CARGO_TERM_COLOR: always
CACHE_KEY_SUFFIX: 20251109
jobs:
miri-test:
name: miri test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Install rust toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.RUST_TOOLCHAIN_NIGHTLY }}
components: miri
- name: Cache Cargo home
uses: actions/cache@v4
id: cache
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: ${{ runner.os }}-${{ runner.arch }}-cargo-${{ hashFiles('**/Cargo.toml') }}-${{ env.CACHE_KEY_SUFFIX }}-miri-isolated
- name: Setup miri
env:
RUST_TOOLCHAIN_NIGHTLY: ${{ env.RUST_TOOLCHAIN_NIGHTLY }}
run: |
cargo +$RUST_TOOLCHAIN_NIGHTLY miri setup
# Run with stricter miri flags (isolation enabled, more checking)
- name: Run isolated miri tests (strict mode)
env:
RUST_BACKTRACE: 1
RUST_TOOLCHAIN_NIGHTLY: ${{ env.RUST_TOOLCHAIN_NIGHTLY }}
timeout-minutes: 10
run: |
cargo +$RUST_TOOLCHAIN_NIGHTLY miri test --features test_utils --workspace --exclude foyer-bench