Skip to content

Commit bf68da9

Browse files
committed
chore: add updating Rust version.
1 parent 23bc5bc commit bf68da9

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

.github/workflows/release-python.yml

+4-12
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ jobs:
4242
- uses: actions/setup-python@v5
4343
with:
4444
python-version: ${{ env.PYTHON_VERSION }}
45-
- uses: actions-rust-lang/setup-rust-toolchain@v1
46-
with:
47-
toolchain: ${{ env.RUST_VERSION }}
4845
- name: Install dependencies
4946
run: |
5047
python3 -m ensurepip
@@ -54,6 +51,7 @@ jobs:
5451
uses: PyO3/maturin-action@v1
5552
with:
5653
target: ${{ matrix.platform.target }}
54+
rust-toolchain: ${{ env.RUST_VERSION }}
5755
args: --manifest-path=py-hftbacktest/Cargo.toml --release --out dist --find-interpreter
5856
# sccache: 'true'
5957
manylinux: 2_24
@@ -81,9 +79,6 @@ jobs:
8179
- uses: actions/setup-python@v5
8280
with:
8381
python-version: ${{ env.PYTHON_VERSION }}
84-
- uses: actions-rust-lang/setup-rust-toolchain@v1
85-
with:
86-
toolchain: ${{ env.RUST_VERSION }}
8782
- name: Install dependencies
8883
run: |
8984
sudo apt-get update
@@ -92,6 +87,7 @@ jobs:
9287
uses: PyO3/maturin-action@v1
9388
with:
9489
target: ${{ matrix.platform.target }}
90+
rust-toolchain: ${{ env.RUST_VERSION }}
9591
args: --manifest-path=py-hftbacktest/Cargo.toml --release --out dist --find-interpreter
9692
sccache: 'true'
9793
manylinux: musllinux_1_2
@@ -116,16 +112,14 @@ jobs:
116112
with:
117113
python-version: ${{ env.PYTHON_VERSION }}
118114
architecture: ${{ matrix.platform.target }}
119-
- uses: actions-rust-lang/setup-rust-toolchain@v1
120-
with:
121-
toolchain: ${{ env.RUST_VERSION }}
122115
- name: Install dependencies
123116
run: |
124117
choco install openssl
125118
- name: Build wheels
126119
uses: PyO3/maturin-action@v1
127120
with:
128121
target: ${{ matrix.platform.target }}
122+
rust-toolchain: ${{ env.RUST_VERSION }}
129123
args: --manifest-path=py-hftbacktest/Cargo.toml --release --out dist --find-interpreter
130124
sccache: 'true'
131125
- name: Upload wheels
@@ -150,16 +144,14 @@ jobs:
150144
- uses: actions/setup-python@v5
151145
with:
152146
python-version: ${{ env.PYTHON_VERSION }}
153-
- uses: actions-rust-lang/setup-rust-toolchain@v1
154-
with:
155-
toolchain: ${{ env.RUST_VERSION }}
156147
- name: Install dependencies
157148
run: |
158149
brew install openssl
159150
- name: Build wheels
160151
uses: PyO3/maturin-action@v1
161152
with:
162153
target: ${{ matrix.platform.target }}
154+
rust-toolchain: ${{ env.RUST_VERSION }}
163155
args: --manifest-path=py-hftbacktest/Cargo.toml --release --out dist --find-interpreter
164156
sccache: 'true'
165157
- name: Upload wheels

0 commit comments

Comments
 (0)