Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to '.github/workflows/release.yaml')
-rw-r--r--.github/workflows/release.yaml28
1 files changed, 4 insertions, 24 deletions
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
index 9205d86f93..cb47d3973e 100644
--- a/.github/workflows/release.yaml
+++ b/.github/workflows/release.yaml
@@ -55,31 +55,11 @@ jobs:
with:
fetch-depth: ${{ env.FETCH_DEPTH }}
- # We need to disable the existing toolchain to avoid updating rust-docs
- # which takes a long time. The fastest way to do this is to rename the
- # existing folder, as deleting it takes about as much time as not doing
- # anything and just updating rust-docs.
- - name: Rename existing Rust toolchain
- if: matrix.os == 'windows-latest'
- run: Rename-Item C:\Users\runneradmin\.rustup\toolchains\stable-x86_64-pc-windows-msvc C:\Users\runneradmin\.rustup\toolchains\stable-x86_64-pc-windows-msvc.old
-
- name: Install Rust toolchain
- uses: actions-rs/toolchain@v1
- with:
- toolchain: stable
- target: ${{ matrix.target }}
- profile: minimal
- override: true
-
- - name: Install Rust library source
- if: matrix.target == 'x86_64-unknown-linux-gnu'
- uses: actions-rs/toolchain@v1
- with:
- toolchain: stable
- target: ${{ matrix.target }}
- profile: minimal
- override: true
- components: rust-src
+ run: |
+ rustup update stable
+ rustup target add ${{ matrix.target }}
+ rustup component add rust-src
- name: Install Node.js
uses: actions/setup-node@v1