Skip to content

Commit 70fff1a

Browse files
committed
Fix rust toolchain not installing correctly
1 parent 00e8255 commit 70fff1a

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

.github/actions/setup-rust/action.yaml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,10 @@ inputs:
1111
runs:
1212
using: 'composite'
1313
steps:
14-
- name: Print rustup toolchain version
15-
shell: bash
16-
id: rustup-version
17-
run: |
18-
export RUST_TOOLCHAIN_VERSION="$(grep 'channel' rust-toolchain.toml | head -1 | awk -F '"' '{print $2}')"
19-
echo "Rust toolchain version: $RUST_TOOLCHAIN_VERSION"
20-
echo "RUST_TOOLCHAIN_VERSION=$RUST_TOOLCHAIN_VERSION" >> "$GITHUB_OUTPUT"
2114
- name: Setup Rust
2215
uses: dtolnay/rust-toolchain@stable
2316
with:
24-
toolchain: '${{ steps.rustup-version.outputs.RUST_TOOLCHAIN_VERSION }}'
17+
toolchain: stable
2518
targets: ${{ inputs.targets }}
2619
components: ${{ inputs.components }}
2720
env:
@@ -35,4 +28,4 @@ runs:
3528
~/.cargo/git/db/
3629
~/.napi-rs
3730
target/${{ inputs.target }}
38-
key: ${{ steps.rustup-version.outputs.RUST_TOOLCHAIN_VERSION }}-${{ inputs.target }}-cargo-cache
31+
key: stable-${{ inputs.target }}-cargo-cache

0 commit comments

Comments
 (0)