Skip to content

Commit 84ad509

Browse files
committed
CI: correctly test against MSRV, remove outdated actions
so far the rust attribute of the build matrix had been ignored, which was incorrect. see actions-rs/toolchain#216 for more information on the outdated actions.
1 parent 7a141db commit 84ad509

File tree

1 file changed

+17
-24
lines changed

1 file changed

+17
-24
lines changed

.github/workflows/CI.yml

Lines changed: 17 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -14,31 +14,24 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
rust: [1.65.0, stable]
17-
features: ['', '--features rgb,serde']
18-
17+
features: ['', '--all-features']
1918
runs-on: ubuntu-latest
2019
steps:
2120
- uses: actions/checkout@v3
22-
- uses: actions-rs/cargo@v1
23-
with:
24-
command: build
25-
args: ${{ matrix.features }}
26-
- uses: actions-rs/cargo@v1
27-
with:
28-
command: check
29-
args: ${{ matrix.features }}
30-
- uses: actions-rs/cargo@v1
31-
with:
32-
command: test
33-
args: ${{ matrix.features }}
34-
- uses: actions-rs/cargo@v1
35-
with:
36-
command: fmt
37-
args: --all -- --check
38-
- uses: actions-rs/cargo@v1
39-
with:
40-
command: clippy
41-
args: ${{ matrix.features }}
42-
- uses: actions-rs/cargo@v1
21+
- name: install rust toolchain
22+
uses: dtolnay/rust-toolchain@master
4323
with:
44-
command: audit
24+
toolchain: ${{ matrix.rust }}
25+
components: rustfmt clippy
26+
- name: build
27+
run: cargo build ${{ matrix.features }}
28+
- name: check
29+
run: cargo check ${{ matrix.features }}
30+
- name: test
31+
run: cargo test ${{ matrix.features }}
32+
- name: check formatting
33+
run: cargo fmt --all -- --check
34+
- name: clippy
35+
run: cargo clippy ${{ matrix.features }}
36+
- name: audit
37+
run: cargo audit

0 commit comments

Comments
 (0)