Skip to content

Commit 0f21b2d

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 09abd76 commit 0f21b2d

File tree

5 files changed

+7
-47
lines changed

5 files changed

+7
-47
lines changed

.github/workflows/ci.yaml

+2-11
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,7 @@ jobs:
4646
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
4747

4848
- name: Install Rust toolchain
49-
uses: actions-rs/toolchain@v1
50-
with:
51-
toolchain: stable
52-
profile: minimal
53-
override: true
54-
components: rustfmt, rust-src
49+
run: rustup update stable && rustup component add rustfmt rust-src
5550

5651
- name: Cache Dependencies
5752
uses: Swatinem/rust-cache@ce325b60658c1b38465c06cc965b79baf32c1e72
@@ -79,11 +74,7 @@ jobs:
7974
uses: actions/checkout@v3
8075

8176
- name: Install Rust toolchain
82-
uses: actions-rs/toolchain@v1
83-
with:
84-
toolchain: stable
85-
profile: minimal
86-
override: true
77+
run: rustup update stable
8778

8879
- name: Install Rust targets
8980
run: rustup target add ${{ env.targets }} ${{ env.targets_ide }}

.github/workflows/metrics.yaml

+1-6
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,7 @@ jobs:
2020
uses: actions/checkout@v3
2121

2222
- name: Install Rust toolchain
23-
uses: actions-rs/toolchain@v1
24-
with:
25-
toolchain: stable
26-
profile: minimal
27-
override: true
28-
components: rust-src
23+
run: rustup update stable && rustup component add rustfmt rust-src
2924

3025
- name: Collect metrics
3126
run: cargo xtask metrics

.github/workflows/publish.yml

+2-8
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,10 @@ jobs:
2020
fetch-depth: 0
2121

2222
- name: Install Rust toolchain
23-
uses: actions-rs/toolchain@v1
24-
with:
25-
toolchain: stable
26-
profile: minimal
27-
override: true
23+
run: rustup update stable
2824

2925
- name: Install cargo-workspaces
30-
uses: actions-rs/[email protected]
31-
with:
32-
crate: cargo-workspaces
26+
run: cargo install cargo-workspaces
3327

3428
- name: Release
3529
env:

.github/workflows/release.yaml

+1-16
Original file line numberDiff line numberDiff line change
@@ -64,22 +64,7 @@ jobs:
6464
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
6565

6666
- name: Install Rust toolchain
67-
uses: actions-rs/toolchain@v1
68-
with:
69-
toolchain: stable
70-
target: ${{ matrix.target }}
71-
profile: minimal
72-
override: true
73-
74-
- name: Install Rust library source
75-
if: matrix.target == 'x86_64-unknown-linux-gnu'
76-
uses: actions-rs/toolchain@v1
77-
with:
78-
toolchain: stable
79-
target: ${{ matrix.target }}
80-
profile: minimal
81-
override: true
82-
components: rust-src
67+
run: rustup update stable && rustup target add ${{ matrix.target }} && rustup component add rust-src
8368

8469
- name: Install Node.js
8570
uses: actions/setup-node@v1

.github/workflows/rustdoc.yaml

+1-6
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,7 @@ jobs:
2020
uses: actions/checkout@v3
2121

2222
- name: Install Rust toolchain
23-
uses: actions-rs/toolchain@v1
24-
with:
25-
toolchain: stable
26-
profile: minimal
27-
override: true
28-
components: rustfmt, rust-src
23+
run: rustup update stable
2924

3025
- name: Build Documentation
3126
run: cargo doc --all --no-deps

0 commit comments

Comments
 (0)