Skip to content

Commit c4c936a

Browse files
authored
Merge pull request #49 from python-project-templates/tkp/rs3
Correct toolchains
2 parents 987512b + 3e1d0e8 commit c4c936a

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

rust/pyproject.toml.jinja

+21-3
Original file line numberDiff line numberDiff line change
@@ -84,23 +84,41 @@ ignore = [
8484
]
8585
8686
[tool.cibuildwheel]
87-
before-build = "curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=stable --profile=minimal -y && rustup show"
87+
before-build = "curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=stable --profile=minimal -y"
8888
build = "cp39-*"
8989
skip = "*musllinux*"
9090
test-command = "pytest -vvv {project}/{{module}}/tests"
9191
test-requires = ["pytest", "pytest-cov", "pytest-sugar", "pytest-xdist"]
9292
9393
[tool.cibuildwheel.linux]
94+
before-build = """
95+
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=stable --profile=minimal -y
96+
rustup target add aarch64-unknown-linux-gnu
97+
rustup target add x86_64-unknown-linux-gnu
98+
rustup show
99+
"""
94100
environment = {PATH="$HOME/.cargo/bin:$PATH", CARGO_TERM_COLOR="always"}
95-
archs = "x86_64"
101+
archs = "x86_64 aarch64"
96102
97103
[tool.cibuildwheel.macos]
104+
before-build = """
105+
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=stable --profile=minimal -y
106+
rustup target add aarch64-apple-darwin
107+
rustup target add x86_64-apple-darwin
108+
rustup show
109+
"""
98110
environment = {PATH="$HOME/.cargo/bin:$PATH", CARGO_TERM_COLOR="always", MACOS_DEPLOYMENT_TARGET=11.0}
99111
archs = "x86_64 arm64"
100112
101113
[tool.cibuildwheel.windows]
114+
before-build = """
115+
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=stable --profile=minimal -y
116+
rustup target add x86_64-pc-windows-msvc
117+
rustup target add aarch64-pc-windows-msvc
118+
rustup show
119+
"""
102120
environment = {PATH="$UserProfile\\.cargo\bin;$PATH", CARGO_TERM_COLOR="always"}
103-
archs = "AMD64 x86"
121+
archs = "amd64 arm64"
104122
105123
[tool.coverage.run]
106124
branch = true

0 commit comments

Comments
 (0)