Skip to content

Commit 86f7c25

Browse files
committed
ci: organize nightly CI jobs
"Build (nightly + unstable feature)" was misleading, as it also ran unit tests, doc tests, builds everything, and runs miri. I decoupled plus renamed things for a better separation of concerns.
1 parent 0358496 commit 86f7c25

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/rust.yml

+15-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ jobs:
137137
- name: Build
138138
run: cargo xtask build --feature-permutations
139139
nightly_channel:
140-
name: Build (nightly + unstable feature)
140+
name: Nightly + unstable (build, test, doc)
141141
runs-on: ubuntu-latest
142142
env:
143143
# TODO: temporarily allow warnings to not be errors on nightly due to
@@ -163,6 +163,20 @@ jobs:
163163
# Skip testing uefi-macros on nightly because the tests that check the
164164
# compiler error output produce different output on stable vs nightly.
165165
run: cargo xtask test --unstable --skip-macro-tests
166+
miri:
167+
name: Unit + Doc Tests (Miri)
168+
runs-on: ubuntu-latest
169+
env:
170+
# TODO: temporarily allow warnings to not be errors on nightly due to
171+
# incorrect dead_code lint.
172+
# https://github.com/rust-osdev/uefi-rs/issues/1205
173+
RUSTFLAGS: ""
174+
steps:
175+
- name: Checkout sources
176+
uses: actions/checkout@v4
177+
- name: Enable nightly toolchain
178+
run: cp .github/workflows/nightly_toolchain.toml rust-toolchain.toml
179+
- uses: Swatinem/rust-cache@v2
166180
- name: Run unit tests and doctests under Miri
167181
run: |
168182
rustup component add miri

0 commit comments

Comments
 (0)