Skip to content

Commit be9dff4

Browse files
authored
fix: maybe could get version spec
1 parent 28a9d4f commit be9dff4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/build.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ jobs:
1313
timeout-minutes: 40
1414
steps:
1515
- uses: actions/checkout@v4
16-
- uses: dtolnay/rust-toolchain@v1
16+
- id: parse-toolchain
17+
run: cat ./rust-toolchain.toml | awk '/channel = / { print $3 }' | xargs -I% echo spec=% >> $GITHUB_OUTPUT
18+
- uses: dtolnay/rust-toolchain@${{ steps.parse-toolchain.outputs.spec }}
1719
- uses: Swatinem/rust-cache@v2
1820
- name: install native deps
1921
run: sudo apt update && sudo apt install clang llvm pkg-config nettle-dev

0 commit comments

Comments
 (0)