Skip to content

Commit 5da48bc

Browse files
committed
ci: migrate away from actions-rs
1 parent d8e1569 commit 5da48bc

File tree

3 files changed

+11
-14
lines changed

3 files changed

+11
-14
lines changed

.github/workflows/ci.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@ jobs:
3232
runs-on: ${{ matrix.os }}
3333
steps:
3434
- uses: actions/checkout@v3
35-
- uses: actions-rs/toolchain@v1
35+
- name: Install Rust stable
36+
uses: dtolnay/rust-toolchain@stable
3637
with:
37-
toolchain: stable
38+
targets: ${{ matrix.target }}
39+
components: clippy,rustfmt
3840
- uses: Swatinem/rust-cache@v2
3941
with:
4042
prefix-key: ${{ matrix.os }}-${{ matrix.target }}-rust

.github/workflows/pypi.yml

+4-10
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,8 @@ jobs:
1313
runs-on: "windows-latest"
1414
steps:
1515
- uses: actions/checkout@v3
16-
- name: Install latests stable Rust
17-
uses: actions-rs/toolchain@v1
18-
with:
19-
toolchain: stable
20-
override: true
16+
- name: Install Rust stable
17+
uses: dtolnay/rust-toolchain@stable
2118
- uses: actions/setup-python@v4
2219
with:
2320
python-version: ${{ matrix.pyversion }}
@@ -52,11 +49,8 @@ jobs:
5249
runs-on: "macos-latest"
5350
steps:
5451
- uses: actions/checkout@v3
55-
- name: Install latests stable Rust
56-
uses: actions-rs/toolchain@v1
57-
with:
58-
toolchain: stable
59-
override: true
52+
- name: Install Rust stable
53+
uses: dtolnay/rust-toolchain@stable
6054
- uses: actions/setup-python@v4
6155
with:
6256
python-version: ${{ matrix.pyversion }}

.github/workflows/release.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,10 @@ jobs:
4444
runs-on: ${{ matrix.os }}
4545
steps:
4646
- uses: actions/checkout@v3
47-
- uses: actions-rs/toolchain@v1
47+
- name: Install Rust stable
48+
uses: dtolnay/rust-toolchain@stable
4849
with:
49-
toolchain: stable
50+
targets: ${{ matrix.target }}
5051
- uses: Swatinem/rust-cache@v2
5152
with:
5253
prefix-key: ${{ matrix.os }}-${{ matrix.target }}-rust

0 commit comments

Comments
 (0)