Skip to content

Commit 4f79968

Browse files
committed
Switch from actions-rs/toolchain to dtolnay/rust-toolchain
1 parent 52085e0 commit 4f79968

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
@@ -21,11 +21,9 @@ jobs:
2121
]
2222
steps:
2323
- name: Rust install
24-
uses: actions-rs/toolchain@v1
24+
uses: dtolnay/rust-toolchain@master
2525
with:
2626
toolchain: ${{ matrix.rust }}
27-
profile: minimal
28-
override: true
2927
- name: Checkout
3028
uses: actions/checkout@v3
3129
- name: Build
@@ -41,11 +39,8 @@ jobs:
4139
runs-on: ubuntu-latest
4240
steps:
4341
- name: Rust install
44-
uses: actions-rs/toolchain@v1
42+
uses: dtolnay/rust-toolchain@stable
4543
with:
46-
toolchain: stable
47-
profile: minimal
48-
override: true
4944
target: thumbv6m-none-eabi
5045
- name: Checkout
5146
uses: actions/checkout@v3
@@ -60,16 +55,13 @@ jobs:
6055
runs-on: ubuntu-latest
6156
steps:
6257
- name: Rust install
63-
uses: actions-rs/toolchain@v1
58+
uses: dtolnay/rust-toolchain@1.62.0
6459
with:
65-
toolchain: 1.42.0
66-
profile: minimal
67-
override: true
6860
components: rustfmt
6961
- name: Checkout
7062
uses: actions/checkout@v3
7163
- name: Check formatting
7264
uses: actions-rs/cargo@v1
7365
with:
7466
command: fmt
75-
args: --all -- --check
67+
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)