From b1d3ab58afef9b669d98831a4947f5f1852d3426 Mon Sep 17 00:00:00 2001 From: Mathieu Kniewallner Date: Sat, 10 Aug 2024 02:46:58 +0200 Subject: [PATCH] ci: publish wheels for Windows aarch64 --- .github/workflows/release.yml | 2 +- Cargo.lock | 16 ++++++++++++++++ Cargo.toml | 2 +- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e23d0c0d..de38dedd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -68,7 +68,7 @@ jobs: needs: [set-version] strategy: matrix: - target: [x64] + target: [x64, aarch64] python: ['3.12', 'pypy3.10'] steps: - name: Check out diff --git a/Cargo.lock b/Cargo.lock index 9adbe8a9..8c39ca4c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -52,6 +52,12 @@ version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" +[[package]] +name = "cc" +version = "1.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "26a5c3fd7bfa1ce3897a3a3501d362b2d87b7f2583ebcb4a949ec25911025cbc" + [[package]] name = "cfg-if" version = "1.0.0" @@ -343,6 +349,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1e8730e591b14492a8945cdff32f089250b05f5accecf74aeddf9e8272ce1fa8" dependencies = [ "once_cell", + "python3-dll-a", "target-lexicon", ] @@ -392,6 +399,15 @@ dependencies = [ "syn", ] +[[package]] +name = "python3-dll-a" +version = "0.2.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd0b78171a90d808b319acfad166c4790d9e9759bbc14ac8273fe133673dd41b" +dependencies = [ + "cc", +] + [[package]] name = "quote" version = "1.0.36" diff --git a/Cargo.toml b/Cargo.toml index 3acef017..5053252c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ encoding_rs = "0.8.34" ignore = "0.4.22" log = "0.4.22" path-slash = "0.2.1" -pyo3 = { version = "0.22.2", features = ["abi3-py38"] } +pyo3 = { version = "0.22.2", features = ["abi3-py38", "generate-import-lib"] } pyo3-log = "0.11.0" rayon = "1.10.0" regex = "1.10.6"