Skip to content

Commit 823bf22

Browse files
ci: update CI workflow
1 parent d19a42f commit 823bf22

File tree

1 file changed

+16
-20
lines changed

1 file changed

+16
-20
lines changed

.github/workflows/ci.yaml

Lines changed: 16 additions & 20 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,27 @@ jobs:
3331
cargo-args: ""
3432
steps:
3533
- uses: actions/checkout@v6
36-
- uses: actions-rs/toolchain@v1
34+
35+
- name: Set up Rust toolchain
36+
uses: dtolnay/rust-toolchain@master
3737
with:
38-
profile: minimal
3938
toolchain: ${{ matrix.toolchain }}
4039
components: clippy
41-
- uses: actions-rs/cargo@v1
42-
with:
43-
toolchain: ${{ matrix.toolchain }}
44-
command: clippy
45-
args: ${{ matrix.cargo-args }} -- -D warnings
40+
41+
- run: "cargo clippy ${{ matrix.cargo-args }} -- -D warnings"
4642
package:
4743
name: Cargo package
4844
runs-on: ubuntu-latest
4945
steps:
5046
- uses: actions/checkout@v6
51-
- uses: actions-rs/toolchain@v1
47+
48+
- name: Set up Rust toolchain
49+
uses: dtolnay/rust-toolchain@master
5250
with:
53-
profile: minimal
5451
toolchain: stable
55-
components: rustfmt
56-
- uses: actions-rs/cargo@v1
57-
with:
58-
command: package
52+
53+
- name: Package
54+
run: cargo package
5955
build_and_test:
6056
name: Build and test
6157
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)