Skip to content

Commit c6d120e

Browse files
committed
ci: Use dtolnay/rust-toolchain
The actions-rs/toolchain action seems to be lacking maintenance. And is not official despite its official sounding namespace (actions-rs).
1 parent d62388d commit c6d120e

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,9 @@ jobs:
3333
- name: Checkout Repository
3434
uses: actions/checkout@v3
3535
- name: Install Rust
36-
uses: actions-rs/toolchain@v1
36+
uses: dtolnay/rust-toolchain@master
3737
with:
3838
toolchain: ${{ matrix.toolchain }}
39-
profile: minimal
4039
- name: Build
4140
run: |
4241
cargo --locked build --all-features --profile ${{ matrix.profile }}
@@ -72,10 +71,9 @@ jobs:
7271
- name: Checkout Repository
7372
uses: actions/checkout@v3
7473
- name: Install Rust
75-
uses: actions-rs/toolchain@v1
74+
uses: dtolnay/rust-toolchain@master
7675
with:
7776
toolchain: stable
78-
profile: minimal
7977
- name: Run Unit Tests
8078
run: |
8179
cargo --locked test
@@ -87,10 +85,9 @@ jobs:
8785
- name: Checkout repository
8886
uses: actions/checkout@v3
8987
- name: Install Rust
90-
uses: actions-rs/toolchain@v1
88+
uses: dtolnay/rust-toolchain@master
9189
with:
9290
toolchain: stable
93-
profile: minimal
9491
components: clippy
9592
- name: Clippy Checks
9693
run: |
@@ -103,10 +100,9 @@ jobs:
103100
- name: Checkout repository
104101
uses: actions/checkout@v3
105102
- name: Install Rust
106-
uses: actions-rs/toolchain@v1
103+
uses: dtolnay/rust-toolchain@master
107104
with:
108105
toolchain: stable
109-
profile: minimal
110106
components: rustfmt
111107
- name: Check formatting
112108
run: |
@@ -119,10 +115,9 @@ jobs:
119115
- name: Checkout Repository
120116
uses: actions/checkout@v3
121117
- name: Install Rust
122-
uses: actions-rs/toolchain@v1
118+
uses: dtolnay/rust-toolchain@master
123119
with:
124120
toolchain: stable
125-
profile: minimal
126121
- name: Build docs
127122
run: |
128123
cargo rustdoc -- --deny warnings
@@ -134,10 +129,9 @@ jobs:
134129
- name: Checkout Repository
135130
uses: actions/checkout@v3
136131
- name: Install Rust
137-
uses: actions-rs/toolchain@v1
132+
uses: dtolnay/rust-toolchain@master
138133
with:
139134
toolchain: stable
140-
profile: minimal
141135
- name: Install dependencies
142136
run: |
143137
sudo apt-get update
@@ -164,10 +158,9 @@ jobs:
164158
- name: Checkout Repository
165159
uses: actions/checkout@v3
166160
- name: Install Rust
167-
uses: actions-rs/toolchain@v1
161+
uses: dtolnay/rust-toolchain@master
168162
with:
169163
toolchain: stable
170-
profile: minimal
171164
- name: Build
172165
run: |
173166
cargo --locked build --all-features --profile release

0 commit comments

Comments
 (0)