Skip to content

Commit 7104832

Browse files
authored
Merge pull request #237 from cuviper/ci-actions
Update and simplify the CI workflow
2 parents 9a5b1fa + 2e3b3c5 commit 7104832

File tree

1 file changed

+8
-26
lines changed

1 file changed

+8
-26
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,10 @@ jobs:
3232
bench: test build benchmarks
3333

3434
steps:
35-
- uses: actions/checkout@v2
36-
- uses: actions-rs/toolchain@v1
35+
- uses: actions/checkout@v3
36+
- uses: dtolnay/rust-toolchain@master
3737
with:
38-
profile: minimal
3938
toolchain: ${{ matrix.rust }}
40-
override: true
4139
- name: Tests
4240
run: |
4341
cargo build --verbose --features "${{ matrix.features }}"
@@ -63,12 +61,10 @@ jobs:
6361
target: thumbv6m-none-eabi
6462

6563
steps:
66-
- uses: actions/checkout@v2
67-
- uses: actions-rs/toolchain@v1
64+
- uses: actions/checkout@v3
65+
- uses: dtolnay/rust-toolchain@master
6866
with:
69-
profile: minimal
7067
toolchain: ${{ matrix.rust }}
71-
override: true
7268
target: ${{ matrix.target }}
7369
- name: Tests
7470
run: |
@@ -77,32 +73,18 @@ jobs:
7773
7874
clippy:
7975
runs-on: ubuntu-latest
80-
strategy:
81-
matrix:
82-
rust:
83-
- beta
8476
steps:
85-
- uses: actions/checkout@v2
86-
- uses: actions-rs/toolchain@v1
77+
- uses: actions/checkout@v3
78+
- uses: dtolnay/rust-toolchain@beta
8779
with:
88-
profile: minimal
89-
toolchain: ${{ matrix.rust }}
90-
override: true
9180
components: clippy
9281
- run: cargo clippy
9382

9483
miri:
9584
runs-on: ubuntu-latest
96-
strategy:
97-
matrix:
98-
rust:
99-
- nightly
10085
steps:
101-
- uses: actions/checkout@v2
102-
- uses: actions-rs/toolchain@v1
86+
- uses: actions/checkout@v3
87+
- uses: dtolnay/rust-toolchain@nightly
10388
with:
104-
profile: minimal
105-
toolchain: ${{ matrix.rust }}
106-
override: true
10789
components: miri
10890
- run: cargo miri test

0 commit comments

Comments
 (0)