Skip to content

Commit 984760f

Browse files
oliviacrainseanmonstar
authored andcommitted
chore(ci): replace unmaintained actions-rs/toolchain action
The actions-rs GitHub org as a whole is unmaintained, and actions from this org will start failing in July 2023. This PR replaces the actions-rs/toolchain action with dtolnay/rust-toolchain, which is actively maintained.
1 parent 9dcbf04 commit 984760f

File tree

2 files changed

+10
-42
lines changed

2 files changed

+10
-42
lines changed

.github/workflows/CI.yml

Lines changed: 8 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,8 @@ jobs:
3535
uses: actions/checkout@v3
3636

3737
- name: Install Rust
38-
uses: actions-rs/toolchain@v1
38+
uses: dtolnay/rust-toolchain@stable
3939
with:
40-
profile: minimal
41-
toolchain: stable
42-
override: true
4340
components: rustfmt
4441

4542
- name: cargo fmt --check
@@ -79,11 +76,9 @@ jobs:
7976
uses: actions/checkout@v3
8077

8178
- name: Install Rust (${{ matrix.rust }})
82-
uses: actions-rs/toolchain@v1
79+
uses: dtolnay/rust-toolchain@master
8380
with:
84-
profile: minimal
8581
toolchain: ${{ matrix.rust }}
86-
override: true
8782

8883
- name: Test
8984
uses: actions-rs/cargo@v1
@@ -116,11 +111,9 @@ jobs:
116111
uses: actions/checkout@v3
117112

118113
- name: Install Rust (${{ matrix.rust }})
119-
uses: actions-rs/toolchain@v1
114+
uses: dtolnay/rust-toolchain@master
120115
with:
121-
profile: minimal
122116
toolchain: ${{ matrix.rust }}
123-
override: true
124117

125118
- name: Check
126119
uses: actions-rs/cargo@v1
@@ -138,12 +131,9 @@ jobs:
138131
uses: actions/checkout@v3
139132

140133
- name: Install Rust
141-
uses: actions-rs/toolchain@v1
134+
uses: dtolnay/rust-toolchain@nightly
142135
with:
143-
profile: minimal
144-
toolchain: nightly
145136
components: miri
146-
override: true
147137

148138
- name: Test
149139
# Can't enable tcp feature since Miri does not support the tokio runtime
@@ -158,11 +148,7 @@ jobs:
158148
uses: actions/checkout@v3
159149

160150
- name: Install Rust
161-
uses: actions-rs/toolchain@v1
162-
with:
163-
profile: minimal
164-
toolchain: nightly
165-
override: true
151+
uses: dtolnay/rust-toolchain@nightly
166152

167153
- name: Install cargo-hack
168154
run: cargo install cargo-hack
@@ -179,11 +165,7 @@ jobs:
179165
uses: actions/checkout@v3
180166

181167
- name: Install Rust
182-
uses: actions-rs/toolchain@v1
183-
with:
184-
profile: minimal
185-
toolchain: stable
186-
override: true
168+
uses: dtolnay/rust-toolchain@stable
187169

188170
- name: Install cbindgen
189171
uses: actions-rs/cargo@v1
@@ -218,13 +200,7 @@ jobs:
218200
uses: actions/checkout@v3
219201

220202
- name: Install Rust
221-
uses: actions-rs/toolchain@v1
222-
with:
223-
profile: minimal
224-
toolchain: nightly
225-
default: true
226-
override: true
227-
components: cargo
203+
uses: dtolnay/rust-toolchain@nightly
228204

229205
- name: Install cbindgen
230206
uses: actions-rs/cargo@v1
@@ -252,11 +228,7 @@ jobs:
252228
uses: actions/checkout@v3
253229

254230
- name: Install Rust
255-
uses: actions-rs/toolchain@v1
256-
with:
257-
profile: minimal
258-
toolchain: nightly
259-
override: true
231+
uses: dtolnay/rust-toolchain@nightly
260232

261233
- name: cargo doc
262234
uses: actions-rs/cargo@v1

.github/workflows/bench.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,15 @@ jobs:
1818
- uses: actions/checkout@v3
1919

2020
- name: Install Rust
21-
uses: actions-rs/toolchain@v1
22-
with:
23-
profile: minimal
24-
toolchain: nightly
25-
override: true
21+
uses: dtolnay/rust-toolchain@nightly
2622

2723
# Run benchmark and stores the output to a file
2824
- name: Run benchmark
2925
run: cargo bench --features full --bench ${{ matrix.bench }} | tee output.txt
3026

3127
# Download previous benchmark result from cache (if exists)
3228
- name: Download previous benchmark data
33-
uses: actions/cache@v1
29+
uses: actions/cache@v3
3430
with:
3531
path: ./cache
3632
key: ${{ runner.os }}-benchmark

0 commit comments

Comments
 (0)