@@ -136,8 +136,9 @@ jobs:
136
136
-uses :Swatinem/rust-cache@v2
137
137
-name :Build
138
138
run :cargo xtask build --feature-permutations
139
+ # Nightly + unstable feature
139
140
nightly_channel :
140
- name :Build (nightly + unstable feature )
141
+ name :Nightly (build, test, doc )
141
142
runs-on :ubuntu-latest
142
143
env :
143
144
# TODO: temporarily allow warnings to not be errors on nightly due to
@@ -163,6 +164,20 @@ jobs:
163
164
# Skip testing uefi-macros on nightly because the tests that check the
164
165
# compiler error output produce different output on stable vs nightly.
165
166
run :cargo xtask test --unstable --skip-macro-tests
167
+ miri :
168
+ name :Unit + Doc Tests (Miri)
169
+ runs-on :ubuntu-latest
170
+ env :
171
+ # TODO: temporarily allow warnings to not be errors on nightly due to
172
+ # incorrect dead_code lint.
173
+ # https://github.com/rust-osdev/uefi-rs/issues/1205
174
+ RUSTFLAGS :" "
175
+ steps :
176
+ -name :Checkout sources
177
+ uses :actions/checkout@v4
178
+ -name :Enable nightly toolchain
179
+ run :cp .github/workflows/nightly_toolchain.toml rust-toolchain.toml
180
+ -uses :Swatinem/rust-cache@v2
166
181
-name :Run unit tests and doctests under Miri
167
182
run :|
168
183
rustup component add miri