Skip to content

Commit 6142a2c

Browse files
committed
CI: Replace deprecated/unmaintained actions-rs with simple run: steps
The `actions-rs` containers haven't been maintained and updated for years and don't need to: GitHub's actions environment already comes fully loaded with a complete stable Rust installation with the standard tools (clippy, rustfmt, rustdoc). Simple `run:` commands relate directly to what a developer can type in locally to "reproduce" the CI environment while they might be following up on CI failures, and no longer spam ancient Node 12 deprecation warnings.
1 parent 9aafd84 commit 6142a2c

File tree

1 file changed

+3
-23
lines changed

1 file changed

+3
-23
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -8,48 +8,28 @@ jobs:
88
strategy:
99
matrix:
1010
os: [ubuntu-latest, windows-latest, macos-latest]
11-
rust: [stable]
1211
runs-on: ${{ matrix.os }}
1312
steps:
1413
- uses: actions/checkout@v2
15-
- uses: actions-rs/toolchain@v1
16-
with:
17-
toolchain: ${{ matrix.rust }}
18-
override: true
1914
- name: Cargo build
20-
uses: actions-rs/cargo@v1
21-
with:
22-
command: build
23-
args: --workspace --all-targets
15+
run: cargo build --workspace --all-targets
2416
test:
2517
name: Test
2618
strategy:
2719
matrix:
2820
os: [ubuntu-latest, windows-latest, macos-latest]
29-
rust: [stable]
3021
runs-on: ${{ matrix.os }}
3122
steps:
3223
- uses: actions/checkout@v2
33-
- uses: actions-rs/toolchain@v1
34-
with:
35-
toolchain: ${{ matrix.rust }}
36-
override: true
3724
- name: Cargo test
38-
uses: actions-rs/cargo@v1
39-
with:
40-
command: test
41-
args: --workspace --all-targets
25+
run: cargo test --workspace --all-targets
4226
lint:
4327
name: Lint
4428
strategy:
4529
matrix:
4630
os: [ubuntu-latest, windows-latest, macos-latest]
47-
rust: [stable]
4831
runs-on: ${{ matrix.os }}
4932
steps:
5033
- uses: actions/checkout@v2
5134
- name: Cargo clippy
52-
uses: actions-rs/cargo@v1
53-
with:
54-
command: clippy
55-
args: --workspace --all-targets -- -D warnings
35+
run: cargo clippy --workspace --all-targets -- -D warnings

0 commit comments

Comments
 (0)