Skip to content

Commit 17f7e62

Browse files
committed
ci: use miri as component and skip docs only change re-run
1 parent 0bc121d commit 17f7e62

2 files changed

Lines changed: 25 additions & 4 deletions

File tree

.github/workflows/docs.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,14 @@ jobs:
2525
fetch-depth: 1
2626
persist-credentials: false
2727

28+
- uses: dtolnay/rust-toolchain@stable
29+
2830
- uses: Swatinem/rust-cache@v2
2931

3032
- name: Setup pages
3133
id: pages
3234
uses: actions/configure-pages@v5
3335

34-
- name: Clean docs folder
35-
run: cargo clean --doc
36-
3736
# Documentation with Latex support
3837
# TODO(template) if Latex is not needed
3938
# just remove katex-header.html at the root and RUSTDOCFLAGS here

.github/workflows/ub-detection.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
name: UB (undefined behavior) detection
22

3-
on: push
3+
on:
4+
push:
5+
branches: [main]
6+
paths-ignore:
7+
- "**.md"
8+
- "LICENSE*"
9+
- ".github/workflows/docs.yml"
10+
- "katex-header.html"
11+
pull_request:
12+
branches: [main]
13+
paths-ignore:
14+
- "**.md"
15+
- "LICENSE*"
16+
- ".github/workflows/docs.yml"
17+
- "katex-header.html"
418

519
permissions:
620
contents: read
@@ -23,12 +37,20 @@ jobs:
2337
runs-on: ubuntu-latest
2438
steps:
2539
- uses: actions/checkout@v4
40+
- uses: dtolnay/rust-toolchain@nightly
41+
with:
42+
components: miri
2643
- uses: Swatinem/rust-cache@v2
2744
with:
2845
cache-on-failure: true
46+
<<<<<<< HEAD
2947
- run: |
3048
rustup +nightly component add miri
3149
cargo +nightly miri setup
3250
PROPTEST_DISABLE_FAILURE_PERSISTENCE=true \
3351
MIRIFLAGS="-Zmiri-env-forward=PROPTEST_DISABLE_FAILURE_PERSISTENCE -Zmiri-strict-provenance" \
3452
cargo +nightly miri test --lib
53+
=======
54+
- name: Run Miri
55+
run: MIRIFLAGS="-Zmiri-strict-provenance" cargo +nightly miri test --lib
56+
>>>>>>> 5d9ff19 (ci: use miri as component and skip docs only change re-run)

0 commit comments

Comments
 (0)