Skip to content

Commit 6a3aea8

Browse files
committed
Switch from actions-rs/toolchain to dtolnay/rust-toolchain
1 parent cf29dce commit 6a3aea8

File tree

3 files changed

+8
-23
lines changed

3 files changed

+8
-23
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@ jobs:
1515
rust: [1.31.0, stable, beta, nightly]
1616
steps:
1717
- name: Rust install
18-
uses: actions-rs/toolchain@v1
18+
uses: dtolnay/rust-toolchain@master
1919
with:
2020
toolchain: ${{ matrix.rust }}
21-
profile: minimal
22-
override: true
2321
- name: Checkout
2422
uses: actions/checkout@v3
2523
- name: Build
@@ -35,11 +33,8 @@ jobs:
3533
runs-on: ubuntu-latest
3634
steps:
3735
- name: Rust install
38-
uses: actions-rs/toolchain@v1
36+
uses: dtolnay/rust-toolchain@stable
3937
with:
40-
toolchain: stable
41-
profile: minimal
42-
override: true
4338
target: thumbv6m-none-eabi
4439
- name: Checkout
4540
uses: actions/checkout@v3
@@ -56,16 +51,13 @@ jobs:
5651
runs-on: ubuntu-latest
5752
steps:
5853
- name: Rust install
59-
uses: actions-rs/toolchain@v1
54+
uses: dtolnay/rust-toolchain@1.62.0
6055
with:
61-
toolchain: 1.42.0
62-
profile: minimal
63-
override: true
6456
components: rustfmt
6557
- name: Checkout
6658
uses: actions/checkout@v3
6759
- name: Check formatting
6860
uses: actions-rs/cargo@v1
6961
with:
7062
command: fmt
71-
args: --all -- --check
63+
args: --all --check

.github/workflows/master.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,9 @@ jobs:
1616
rust: [1.31.0, stable]
1717
steps:
1818
- name: Rust install
19-
uses: actions-rs/toolchain@v1
19+
uses: dtolnay/rust-toolchain@master
2020
with:
2121
toolchain: ${{ matrix.rust }}
22-
profile: minimal
23-
override: true
2422
- name: Checkout
2523
uses: actions/checkout@v3
2624
- name: Build

.github/workflows/pr.yaml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,9 @@ jobs:
1212
rust: [1.31.0, stable]
1313
steps:
1414
- name: Rust install
15-
uses: actions-rs/toolchain@v1
15+
uses: dtolnay/rust-toolchain@master
1616
with:
1717
toolchain: ${{ matrix.rust }}
18-
profile: minimal
19-
override: true
2018
- name: Checkout
2119
uses: actions/checkout@v3
2220
- name: Build
@@ -31,16 +29,13 @@ jobs:
3129
runs-on: ubuntu-latest
3230
steps:
3331
- name: Rust install
34-
uses: actions-rs/toolchain@v1
32+
uses: dtolnay/rust-toolchain@1.62.0
3533
with:
36-
toolchain: 1.42.0
37-
profile: minimal
38-
override: true
3934
components: rustfmt
4035
- name: Checkout
4136
uses: actions/checkout@v3
4237
- name: Check formatting
4338
uses: actions-rs/cargo@v1
4439
with:
4540
command: fmt
46-
args: --all -- --check
41+
args: --all --check

0 commit comments

Comments
 (0)