Skip to content

Commit e431077

Browse files
committed
Switch from actions-rs/toolchain to dtolnay/rust-toolchain
1 parent cc43faf commit e431077

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.8.0, 1.15.0, 1.20.0, 1.26.0, 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
@@ -54,16 +49,13 @@ jobs:
5449
runs-on: ubuntu-latest
5550
steps:
5651
- name: Rust install
57-
uses: actions-rs/toolchain@v1
52+
uses: dtolnay/rust-toolchain@1.62.0
5853
with:
59-
toolchain: 1.42.0
60-
profile: minimal
61-
override: true
6254
components: rustfmt
6355
- name: Checkout
6456
uses: actions/checkout@v3
6557
- name: Check formatting
6658
uses: actions-rs/cargo@v1
6759
with:
6860
command: fmt
69-
args: --all -- --check
61+
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.8.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.8.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)