Skip to content

Commit

Permalink
fix windows aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
ringsaturn committed Dec 2, 2024
1 parent 92dba7d commit 7187b05
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 20 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,14 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
python-version: "3.12"
- uses: messense/maturin-action@v1
with:
target: aarch64-pc-windows-msvc
command: build
sccache: true
args: --release -o dist -i 3.9 3.10 3.11 3.12 3.13
args: --release -o dist -i 3.11 3.12
maturin-version: v1.7.5
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
Expand Down
25 changes: 25 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ crate-type = ["cdylib"]

[dependencies]
lazy_static = "1.5.0"
pyo3 = {version = "0.23.2", features = ["extension-module", "abi3-py39"]}
pyo3 = {version = "0.23.2", features = ["extension-module", "generate-import-lib", "abi3-py39"]}

# tzf-rs = { git = "https://github.com/ringsaturn/tzf-rs", rev = "31b1730", default-features = false}
tzf-rs = { version = "0.4.9", default-features = false }
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Issues = "https://github.com/ringsaturn/tzfpy/issues"
dev = [
"ruff==0.8.1",
"citiespy>=0.6.6",
"maturin==1.7.6",
"maturin==1.7.7",
"pytest>=8.3.3",
"pytest-benchmark>=5.1.0",
"pytest-cov>=6.0.0",
Expand All @@ -55,4 +55,4 @@ dev = [

[tool.maturin]
# "extension-module" tells pyo3 we want to build an extension module (skips linking against libpython.so)
features = ["pyo3/extension-module"]
features = ["pyo3/extension-module", "pyo3/generate-import-lib"]
30 changes: 15 additions & 15 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7187b05

Please sign in to comment.