Skip to content

Commit 1b0373c

Browse files
committed
ci: fix rustup target installation
1 parent 4c0f1db commit 1b0373c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,18 @@ jobs:
4949
with:
5050
submodules: recursive
5151

52+
- name: Print rustup toolchain version
53+
shell: bash
54+
id: rustup-version
55+
run: |
56+
export RUST_TOOLCHAIN_VERSION="$(grep 'channel' rust-toolchain.toml | head -1 | awk -F '"' '{print $2}')"
57+
echo "Rust toolchain version: $RUST_TOOLCHAIN_VERSION"
58+
echo "RUST_TOOLCHAIN_VERSION=$RUST_TOOLCHAIN_VERSION" >> "$GITHUB_OUTPUT"
59+
5260
- name: Install Rust
5361
uses: dtolnay/rust-toolchain@stable
5462
with:
63+
toolchain: '${{ steps.rustup-version.outputs.RUST_TOOLCHAIN_VERSION }}'
5564
targets: ${{ matrix.target }}
5665

5766
- name: Cache Rust

0 commit comments

Comments
 (0)