Skip to content

Commit 8489a1d

Browse files
committed
need to install yq
1 parent 8dd3a76 commit 8489a1d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/rust.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,10 @@ jobs:
7272
with:
7373
toolchain: ${{matrix.rust.toolchain}}
7474
id: rust-toolchain
75-
# on msrv runs, use stable to generate Cargo.lock then downgrade
7675
- run: cargo --config 'resolver.incompatible-rust-versions="fallback"' update
76+
# on msrv runs, downgrade rust after generating the Cargo.lock file
77+
- run: apk -y update && apk -y install --no-install-recommends yq
78+
if: matrix.rust.name == 'MSRV'
7779
- run: echo "rust-version=$(tomlq -r '.workspace.package."rust-version"' Cargo.toml)" >>$GITHUB_OUTPUT
7880
id: msrv
7981
if: matrix.rust.name == 'MSRV'

0 commit comments

Comments
 (0)