Skip to content

Commit 43ecdda

Browse files
committed
Remove obsolete actions-rs/toolchain@v1 GitHub Action
1 parent 48e93d7 commit 43ecdda

File tree

1 file changed

+20
-31
lines changed

1 file changed

+20
-31
lines changed

.github/workflows/ci-build-wheel.yml

Lines changed: 20 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -36,23 +36,21 @@ jobs:
3636
fetch-depth: 0
3737

3838
- name: Install Rust
39-
if: runner.os != 'Linux'
40-
uses: actions-rs/toolchain@v1
41-
with:
42-
toolchain: 1.71.1
43-
profile: minimal
39+
run: |
40+
rustup toolchain install --profile minimal 1.71.1
41+
rustup default 1.71.1
4442
4543
- name: Install Rust *-apple-darwin targets
4644
if: runner.os == 'macOS'
4745
run: |
4846
rustup target add aarch64-apple-darwin
4947
rustup target add x86_64-apple-darwin
5048
51-
# - name: Set up QEMU
52-
# if: runner.os == 'Linux'
53-
# uses: docker/setup-qemu-action@v2
54-
# with:
55-
# platforms: arm64,arm
49+
- name: Install Rust *-pc-windows-msvc targets
50+
if: runner.os == 'Windows'
51+
run: |
52+
rustup target add x86_64-pc-windows-msvc
53+
rustup target add i686-pc-windows-msvc
5654
5755
- uses: actions/setup-python@v4
5856
name: Install Python
@@ -77,13 +75,10 @@ jobs:
7775
- uses: actions/setup-python@v4
7876
with:
7977
python-version: 3.9
80-
- name: Install Rust toolchain
81-
uses: actions-rs/toolchain@v1
82-
with:
83-
toolchain: 1.71.1
84-
profile: minimal
85-
target: arm-unknown-linux-gnueabihf
86-
default: true
78+
- name: Install Rust
79+
run: |
80+
rustup toolchain install --profile minimal -t arm-unknown-linux-gnueabihf 1.71.1
81+
rustup default 1.71.1
8782
- name: Install cross toolchain and build
8883
run: |
8984
brew tap messense/macos-cross-toolchains
@@ -110,13 +105,10 @@ jobs:
110105
- uses: actions/setup-python@v4
111106
with:
112107
python-version: 3.9
113-
- name: Install Rust toolchain
114-
uses: actions-rs/toolchain@v1
115-
with:
116-
toolchain: 1.71.1
117-
profile: minimal
118-
target: armv7-unknown-linux-gnueabihf
119-
default: true
108+
- name: Install Rust
109+
run: |
110+
rustup toolchain install --profile minimal -t armv7-unknown-linux-gnueabihf 1.71.1
111+
rustup default 1.71.1
120112
- name: Install cross toolchain and build
121113
run: |
122114
brew tap messense/macos-cross-toolchains
@@ -143,13 +135,10 @@ jobs:
143135
- uses: actions/setup-python@v4
144136
with:
145137
python-version: 3.9
146-
- name: Install Rust toolchain
147-
uses: actions-rs/toolchain@v1
148-
with:
149-
toolchain: 1.71.1
150-
profile: minimal
151-
target: aarch64-unknown-linux-gnu
152-
default: true
138+
- name: Install Rust
139+
run: |
140+
rustup toolchain install --profile minimal -t aarch64-unknown-linux-gnu 1.71.1
141+
rustup default 1.71.1
153142
- name: Install cross toolchain and build
154143
run: |
155144
brew tap messense/macos-cross-toolchains

0 commit comments

Comments
 (0)