Skip to content

Commit 18cf1e5

Browse files
ci: update CI workflow
1 parent d19a42f commit 18cf1e5

File tree

1 file changed

+16
-21
lines changed

1 file changed

+16
-21
lines changed

.github/workflows/ci.yaml

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,13 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v6
15-
- uses: actions-rs/toolchain@v1
15+
16+
- name: Set up Rust toolchain
17+
uses: dtolnay/rust-toolchain@master
1618
with:
17-
profile: minimal
1819
toolchain: stable
19-
components: rustfmt
20-
- uses: actions-rs/cargo@v1
21-
with:
22-
command: fmt
23-
args: --all -- --check
20+
21+
- run: cargo fmt --all -- --check
2422
clippy:
2523
name: Clippy
2624
runs-on: ubuntu-latest
@@ -33,29 +31,26 @@ jobs:
3331
cargo-args: ""
3432
steps:
3533
- uses: actions/checkout@v6
36-
- uses: actions-rs/toolchain@v1
37-
with:
38-
profile: minimal
39-
toolchain: ${{ matrix.toolchain }}
40-
components: clippy
41-
- uses: actions-rs/cargo@v1
34+
35+
- name: Set up Rust toolchain
36+
uses: dtolnay/rust-toolchain@master
4237
with:
4338
toolchain: ${{ matrix.toolchain }}
44-
command: clippy
45-
args: ${{ matrix.cargo-args }} -- -D warnings
39+
40+
- run: "cargo @${{ matrix.toolchain }} clippy ${{ matrix.cargo-args }} -- -D warnings"
4641
package:
4742
name: Cargo package
4843
runs-on: ubuntu-latest
4944
steps:
5045
- uses: actions/checkout@v6
51-
- uses: actions-rs/toolchain@v1
46+
47+
- name: Set up Rust toolchain
48+
uses: dtolnay/rust-toolchain@master
5249
with:
53-
profile: minimal
5450
toolchain: stable
55-
components: rustfmt
56-
- uses: actions-rs/cargo@v1
57-
with:
58-
command: package
51+
52+
- name: Package
53+
run: cargo package
5954
build_and_test:
6055
name: Build and test
6156
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)