Skip to content

Commit b49f2a2

Browse files
committed
Remove deprecate action
https://old.reddit.com/r/rust/comments/vyx4oj/actionsrs_organization_became_unmaintained/ Looking at this holistically, I don't fully understand *why* we need an action here? Seems like we can just use rustup? nowadays github runners come with rustup pre-installed.
1 parent 248fa55 commit b49f2a2

File tree

3 files changed

+13
-15
lines changed

3 files changed

+13
-15
lines changed

.github/workflows/ci.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ jobs:
3838
fetch-depth: 20
3939

4040
- name: Install Rust toolchain
41-
run: rustup update stable && rustup component add rustfmt rust-src
41+
run: |
42+
rustup update stable
43+
rustup component add rustfmt rust-src
4244
4345
- name: Cache Dependencies
4446
uses: Swatinem/rust-cache@ce325b60658c1b38465c06cc965b79baf32c1e72
@@ -66,10 +68,9 @@ jobs:
6668
uses: actions/checkout@v3
6769

6870
- name: Install Rust toolchain
69-
run: rustup update stable
70-
71-
- name: Install Rust targets
72-
run: rustup target add ${{ env.targets }} ${{ env.targets_ide }}
71+
run: |
72+
rustup update stable
73+
rustup target add ${{ env.targets }} ${{ env.targets_ide }}
7374
7475
- name: Cache Dependencies
7576
uses: Swatinem/rust-cache@ce325b60658c1b38465c06cc965b79baf32c1e72

.github/workflows/metrics.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ jobs:
2020
uses: actions/checkout@v3
2121

2222
- name: Install Rust toolchain
23-
run: rustup update stable && rustup component add rustfmt rust-src
23+
run: |
24+
rustup update stable
25+
rustup component add rustfmt rust-src
2426
2527
- name: Collect metrics
2628
run: cargo xtask metrics

.github/workflows/release.yaml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,11 @@ jobs:
5555
with:
5656
fetch-depth: ${{ env.FETCH_DEPTH }}
5757

58-
# We need to disable the existing toolchain to avoid updating rust-docs
59-
# which takes a long time. The fastest way to do this is to rename the
60-
# existing folder, as deleting it takes about as much time as not doing
61-
# anything and just updating rust-docs.
62-
- name: Rename existing Rust toolchain
63-
if: matrix.os == 'windows-latest'
64-
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
65-
6658
- name: Install Rust toolchain
67-
run: rustup update stable && rustup target add ${{ matrix.target }} && rustup component add rust-src
59+
run: |
60+
rustup update stable
61+
rustup target add ${{ matrix.target }}
62+
rustup component add rust-src
6863
6964
- name: Install Node.js
7065
uses: actions/setup-node@v1

0 commit comments

Comments
 (0)