Skip to content

Commit 4b0c322

Browse files
committed
Adjust cibuildwheel for rust
1 parent 6b6f899 commit 4b0c322

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/cibuildwheel.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ jobs:
2121
- name: Build wheels
2222
uses: pypa/[email protected]
2323
env:
24-
CIBW_SOME_OPTION: value
24+
# Set up rust
25+
CIBW_BEFORE_ALL_LINUX: curl -sSf https://sh.rustup.rs | sh -s -- -y
26+
CIBW_BEFORE_ALL_WINDOWS: rustup target add i686-pc-windows-msvc
27+
CIBW_ENVIRONMENT_LINUX: "PATH=$HOME/.cargo/bin:$PATH"
2528
with:
2629
package-dir: .
2730
output-dir: wheelhouse

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ requires = [
77

88
[tool.cibuildwheel]
99
build = "*"
10-
skip = "pp* cp36* cp37* cp38*"
10+
# No rust on musllinux
11+
skip = "pp* cp36* cp37* cp38* *-musllinux_i686"
1112
test-skip = ""
1213
free-threaded-support = false
1314

0 commit comments

Comments
 (0)