Use setup-rust-toolchain for release workflow (#7315)

# Description

Use setup-rust-toolchain for release workflow to inline with the CI
workflow

Test workflow:
https://github.com/hustcer/nu-release/actions/runs/3598316520
Demo Release: https://github.com/hustcer/nu-release/releases/tag/v0.72.8
This commit is contained in:
Justin Ma 2022-12-02 11:23:29 +08:00 committed by GitHub
parent cf0a18be51
commit 94c89eb623
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,16 +61,12 @@ jobs:
steps:
- uses: actions/checkout@v3.1.0
- name: Install Rust Toolchain Components
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
target: ${{ matrix.target }}
- name: Update Rust Toolchain Target
run: |
echo "targets = ['${{matrix.target}}']" >> rust-toolchain.toml
cat rust-toolchain.toml
- name: Setup Rust toolchain and cache
uses: actions-rust-lang/setup-rust-toolchain@v1.3.4
- name: Setup Nushell
uses: hustcer/setup-nu@v3