Skip to content

Commit 8e6e051

Browse files
committed
Switch from actions-rs/toolchain to dtolnay/rust-toolchain
1 parent 3057196 commit 8e6e051

File tree

3 files changed

+9
-27
lines changed

3 files changed

+9
-27
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 16 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
@@ -39,11 +37,8 @@ jobs:
3937
sudo apt-get update
4038
sudo apt-get install gcc-multilib
4139
- name: Rust install
42-
uses: actions-rs/toolchain@v1
40+
uses: dtolnay/rust-toolchain@stable
4341
with:
44-
toolchain: stable
45-
profile: minimal
46-
override: true
4742
target: i586-unknown-linux-gnu
4843
- name: Checkout
4944
uses: actions/checkout@v3
@@ -59,11 +54,8 @@ jobs:
5954
runs-on: ubuntu-latest
6055
steps:
6156
- name: Rust install
62-
uses: actions-rs/toolchain@v1
57+
uses: dtolnay/rust-toolchain@stable
6358
with:
64-
toolchain: stable
65-
profile: minimal
66-
override: true
6759
target: thumbv6m-none-eabi
6860
- name: Checkout
6961
uses: actions/checkout@v3
@@ -83,16 +75,13 @@ jobs:
8375
runs-on: ubuntu-latest
8476
steps:
8577
- name: Rust install
86-
uses: actions-rs/toolchain@v1
78+
uses: dtolnay/rust-toolchain@1.62.0
8779
with:
88-
toolchain: 1.42.0
89-
profile: minimal
90-
override: true
9180
components: rustfmt
9281
- name: Checkout
9382
uses: actions/checkout@v3
9483
- name: Check formatting
9584
uses: actions-rs/cargo@v1
9685
with:
9786
command: fmt
98-
args: --all -- --check
87+
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)