Skip to content

Commit 7732cb9

Browse files
authored
Merge pull request #82 from newAM/update-actions
Update github actions
2 parents 0b39179 + 3841e57 commit 7732cb9

File tree

3 files changed

+16
-33
lines changed

3 files changed

+16
-33
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,11 @@ jobs:
2727
TARGET: x86_64-unknown-linux-gnu
2828

2929
steps:
30-
- uses: actions/checkout@v2
31-
- uses: actions-rs/toolchain@v1
30+
- uses: actions/checkout@v3
31+
- uses: dtolnay/rust-toolchain@master
3232
with:
33-
profile: minimal
3433
toolchain: ${{ matrix.rust }}
35-
target: ${{ matrix.TARGET }}
36-
override: true
34+
targets: ${{ matrix.TARGET }}
3735
- uses: actions-rs/cargo@v1
3836
with:
3937
command: check
@@ -47,13 +45,11 @@ jobs:
4745
TARGET: [x86_64-unknown-linux-gnu, thumbv6m-none-eabi, thumbv7m-none-eabi]
4846

4947
steps:
50-
- uses: actions/checkout@v2
51-
- uses: actions-rs/toolchain@v1
48+
- uses: actions/checkout@v3
49+
- uses: dtolnay/rust-toolchain@master
5250
with:
53-
profile: minimal
5451
toolchain: ${{ matrix.rust }}
55-
target: ${{ matrix.TARGET }}
56-
override: true
52+
targets: ${{ matrix.TARGET }}
5753
- run: cargo check --target=${{ matrix.TARGET }}
5854
working-directory: embedded-nal-async
5955
- run: cargo test --target=${{ matrix.TARGET }}

.github/workflows/clippy.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,9 @@ jobs:
88
clippy_check:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
12-
- uses: actions-rs/toolchain@v1
11+
- uses: actions/checkout@v3
12+
- uses: dtolnay/rust-toolchain@stable
1313
with:
14-
profile: minimal
15-
toolchain: stable
16-
override: true
1714
components: clippy
1815
- uses: actions-rs/clippy-check@v1
1916
with:
@@ -22,12 +19,9 @@ jobs:
2219
clippy_check_async:
2320
runs-on: ubuntu-latest
2421
steps:
25-
- uses: actions/checkout@v2
26-
- uses: actions-rs/toolchain@v1
22+
- uses: actions/checkout@v3
23+
- uses: dtolnay/rust-toolchain@nightly
2724
with:
28-
profile: minimal
29-
toolchain: nightly-2022-11-22
30-
override: true
3125
components: clippy
3226
- run: cargo clippy
3327
working-directory: embedded-nal-async

.github/workflows/rustfmt.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,20 @@ jobs:
1010
name: Rustfmt
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
14-
- uses: actions-rs/toolchain@v1
13+
- uses: actions/checkout@v3
14+
- uses: dtolnay/rust-toolchain@stable
1515
with:
16-
profile: minimal
17-
toolchain: stable
18-
override: true
1916
components: rustfmt
20-
- uses: actions-rs/cargo@v1
21-
with:
22-
command: fmt
23-
args: --all -- --check
17+
- run: cargo fmt --all -- --check
18+
2419
fmt-async:
2520
name: Rustfmt
2621
runs-on: ubuntu-latest
2722
steps:
28-
- uses: actions/checkout@v2
29-
- uses: actions-rs/toolchain@v1
23+
- uses: actions/checkout@v3
24+
- uses: dtolnay/rust-toolchain@master
3025
with:
31-
profile: minimal
3226
toolchain: nightly-2022-11-22
33-
override: true
3427
components: rustfmt
3528
- run: cargo fmt --all -- --check
3629
working-directory: embedded-nal-async

0 commit comments

Comments
 (0)