Skip to content

Commit

Permalink
try building windows aarch64 with only py 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
vemonet committed Mar 7, 2024
1 parent 85d2bde commit 3e72019
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 15 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ jobs:
target: i686
- os: linux
manylinux: auto
target: aarch64
target: aarch64 # -bit ARM
- os: linux
manylinux: auto
target: armv7
target: armv7 # 32-bit ARM
interpreter: 3.8 3.9 3.10 3.11 3.12
- os: linux
manylinux: auto
Expand Down Expand Up @@ -195,18 +195,20 @@ jobs:
target: i686
python-architecture: x86
interpreter: 3.8 3.9 3.10 3.11 3.12
# Ring cant target win aarch64 https://github.com/briansmith/ring/issues/1167
# - os: windows
# target: aarch64
# maturin failed Caused by: Failed to find a PyPy 3.8 interpreter in known sysconfig
- os: windows
target: aarch64
interpreter: "3.11"
# interpreter: 3.9 3.10 3.11 3.12

runs-on: ${{ (matrix.os == 'linux' && 'ubuntu') || matrix.os }}-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
if: matrix.os == 'linux' && matrix.target == 'aarch64'
with:
platforms: linux/${{ matrix.target }}
if: matrix.os == 'linux' && matrix.target == 'aarch64'

- uses: actions/setup-python@v5
with:
python-version: '3.11'
Expand Down
19 changes: 10 additions & 9 deletions lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ serde_yaml = "0.9"
chrono = "0.4.35"
getrandom = { version = "0.2", features = ["js"] }
rand_core = { version = "0.6", features = ["std"] }
reqwest = { version = "0.11", features = ["rustls-tls"], default-features = false }
reqwest = { version = "0.11", default-features = false }

# reqwest = { version = "0.11", features = ["rustls-tls"], default-features = false }
# rand = { version = "0.8", features = ["std_rng"], default-features = false }
# log = { version = "0.0.2", features = ["std"] }
# futures = "0.3"
Expand All @@ -44,12 +45,12 @@ futures = "0.3"
# The JSON-LD parser uses futures::block_on which creates conflict when running in tokio runtime

# # Do not use rustls-tls on Windows aarch64 due to Ring dependency https://github.com/briansmith/ring/issues/1167
# [target.'cfg(all(windows, target_arch = "aarch64"))'.dependencies.reqwest]
# version = "0.11"
# default-features = false
# features = ["native-tls"]
[target.'cfg(all(windows, target_arch = "aarch64"))'.dependencies.reqwest]
version = "0.11"
default-features = false
features = ["native-tls"]

# [target.'cfg(not(all(windows, target_arch = "aarch64")))'.dependencies.reqwest]
# version = "0.11"
# default-features = false
# features = ["rustls-tls"]
[target.'cfg(not(all(windows, target_arch = "aarch64")))'.dependencies.reqwest]
version = "0.11"
default-features = false
features = ["rustls-tls"]

0 comments on commit 3e72019

Please sign in to comment.