Skip to content

Commit bf13d52

Browse files
authored
Merge pull request #2 from cakebaker/ci_replace_actions_rs
ci: replace unmaintained `actions-rs` actions
2 parents 0e14b37 + 329a7e1 commit bf13d52

File tree

1 file changed

+10
-43
lines changed

1 file changed

+10
-43
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,8 @@ jobs:
1414
os: [ubuntu-latest, macOS-latest, windows-latest]
1515
steps:
1616
- uses: actions/checkout@v4
17-
- uses: actions-rs/toolchain@v1
18-
with:
19-
profile: minimal
20-
toolchain: stable
21-
override: true
22-
- uses: actions-rs/cargo@v1
23-
with:
24-
command: check
17+
- uses: dtolnay/rust-toolchain@stable
18+
- run: cargo check
2519

2620
test:
2721
name: cargo test
@@ -31,30 +25,17 @@ jobs:
3125
os: [ubuntu-latest, macOS-latest, windows-latest]
3226
steps:
3327
- uses: actions/checkout@v4
34-
- uses: actions-rs/toolchain@v1
35-
with:
36-
profile: minimal
37-
toolchain: stable
38-
override: true
39-
- uses: actions-rs/cargo@v1
40-
with:
41-
command: test
28+
- uses: dtolnay/rust-toolchain@stable
29+
- run: cargo test
4230

4331
fmt:
4432
name: cargo fmt --all -- --check
4533
runs-on: ubuntu-latest
4634
steps:
4735
- uses: actions/checkout@v4
48-
- uses: actions-rs/toolchain@v1
49-
with:
50-
profile: minimal
51-
toolchain: stable
52-
override: true
36+
- uses: dtolnay/rust-toolchain@stable
5337
- run: rustup component add rustfmt
54-
- uses: actions-rs/cargo@v1
55-
with:
56-
command: fmt
57-
args: --all -- --check
38+
- run: cargo fmt --all -- --check
5839

5940
clippy:
6041
name: cargo clippy -- -D warnings
@@ -64,16 +45,9 @@ jobs:
6445
os: [ubuntu-latest, macOS-latest, windows-latest]
6546
steps:
6647
- uses: actions/checkout@v4
67-
- uses: actions-rs/toolchain@v1
68-
with:
69-
profile: minimal
70-
toolchain: stable
71-
override: true
48+
- uses: dtolnay/rust-toolchain@stable
7249
- run: rustup component add clippy
73-
- uses: actions-rs/cargo@v1
74-
with:
75-
command: clippy
76-
args: -- -D warnings
50+
- run: cargo clippy -- -D warnings
7751

7852
coverage:
7953
name: Code Coverage
@@ -108,16 +82,9 @@ jobs:
10882
outputs CODECOV_FLAGS
10983
11084
- name: rust toolchain ~ install
111-
uses: actions-rs/toolchain@v1
112-
with:
113-
toolchain: ${{ steps.vars.outputs.TOOLCHAIN }}
114-
default: true
115-
profile: minimal # minimal component installation (ie, no documentation)
85+
uses: dtolnay/rust-toolchain@nightly
11686
- name: Test
117-
uses: actions-rs/cargo@v1
118-
with:
119-
command: test
120-
args: ${{ steps.vars.outputs.CARGO_FEATURES_OPTION }} --no-fail-fast
87+
run: cargo test ${{ steps.vars.outputs.CARGO_FEATURES_OPTION }} --no-fail-fast
12188
env:
12289
CARGO_INCREMENTAL: "0"
12390
RUSTC_WRAPPER: ""

0 commit comments

Comments
 (0)