File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -134,6 +134,25 @@ jobs:
134
134
run : |
135
135
cargo --version
136
136
cargo build --target x86_64-unknown-uefi -p uefi-test-runner
137
+ # The uefi-raw crate has its own MSRV. Check that the crate builds correctly
138
+ # with that version of the toolchain.
139
+ build_msrv_raw :
140
+ name : Build (uefi-raw MSRV)
141
+ runs-on : ubuntu-latest
142
+ steps :
143
+ - name : Checkout sources
144
+ uses : actions/checkout@v4
145
+ - name : Set toolchain
146
+ run : |
147
+ # Extract the MSRV using cargo.
148
+ msrv=$(cargo metadata --no-deps --format-version=1 | jq --raw-output '.packages[] | select(.name == "uefi-raw") | .rust_version')
149
+ echo "MSRV: ${msrv}"
150
+ # Set the MSRV in the toolchain config.
151
+ sed -i "s:stable:${msrv}:" rust-toolchain.toml
152
+ - name : Build
153
+ run : |
154
+ cargo --version
155
+ cargo build -p uefi-raw
137
156
# This job requires the nightly channel, but keep it as a separate job from
138
157
# `nightly_channel` because it takes a while to run.
139
158
build_feature_permutations :
You can’t perform that action at this time.
0 commit comments