8000 Add windows arm64 wheel build by finnagin · Pull Request #133 · crate-py/rpds · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add windows arm64 wheel build #133

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
May 19, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 61 additions & 8 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ jobs:
pypy3.11
allow-prereleases: true
- name: Build wheels
uses: PyO3/maturin-action@v1
uses: PyO3/maturin-action@aef21716ff3dcae8a1c301d23ec3e4446972a6e3 # v1.49.1
with:
target: ${{ matrix.target }}
args: --release --out dist --interpreter '3.9 3.10 3.11 3.12 3.13 3.13t pypy3.9 pypy3.10 pypy3.11'
Expand Down Expand Up @@ -141,7 +141,7 @@ jobs:
pypy3.11
allow-prereleases: true
- name: Build wheels
uses: PyO3/maturin-action@v1
uses: PyO3/maturin-action@aef21716ff3dcae8a1c301d23ec3e4446972a6e3 # v1.49.1
with:
target: ${{ matrix.target }}
args: --release --out dist --interpreter '3.9 3.10 3.11 3.12 3.13 3.13t pypy3.9 pypy3.10 pypy3.11'
Expand Down Expand Up @@ -179,7 +179,7 @@ jobs:
allow-prereleases: true
architecture: ${{ matrix.target }}
- name: Build wheels
uses: PyO3/maturin-action@v1
uses: PyO3/maturin-action@aef21716ff3dcae8a1c301d23ec3e4446972a6e3 # v1.49.1
with:
target: ${{ matrix.target }}
args: --release --out dist --interpreter '3.9 3.10 3.11 3.12 3.13' --interpreter ${{ matrix.target == 'x64' && 'pypy3.9 pypy3.10' || '' }}
Expand All @@ -190,6 +190,58 @@ jobs:
name: dist-${{ github.job }}-${{ matrix.target }}
path: dist

windows-arm:
needs: test
runs-on: windows-11-arm

strategy:
fail-fast: false
matrix:
target:
- aarch64-pc-windows-msvc

steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
# Install each python version seperatly so that the paths can be passed to maturin. (otherwise finds pre-installed x64 versions)
- uses: actions/setup-python@v5
id: cp311
with:
python-version: 3.11
allow-prereleases: true
architecture: arm64
- uses: actions/setup-python@v5
id: cp312
with:
python-version: 3.12
allow-prereleases: true
architecture: arm64
- uses: actions/setup-python@v5
id: cp313
with:
python-version: 3.13
allow-prereleases: true
architecture: arm64
# rust toolchain is not currently installed on windopws arm64 images: https://github.com/actions/partner-runner-images/issues/77
- name: Setup rust
id: setup-rust
run: |
Invoke-WebRequest https://static.rust-lang.org/rustup/dist/aarch64-pc-windows-msvc/rustup-init.exe -OutFile .\rustup-init.exe
.\rustup-init.exe -y
Add-Content $env:GITHUB_PATH "$env:USERPROFILE\.cargo\bin"
- name: Build wheels
uses: PyO3/maturin-action@aef21716ff3dcae8a1c301d23ec3e4446972a6e3 # v1.49.1
with:
target: ${{ matrix.target }}
args: --release --out dist --interpreter ${{ steps.cp311.outputs.python-path }} ${{ steps.cp312.outputs.python-path }} ${{ steps.cp313.outputs.python-path }}
sccache: ${{ github.ref_type != 'tag' }} # zizmor: ignore[cache-poisoning]
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
name: dist-${{ github.job }}-${{ matrix.target }}
path: dist

# free-threaded and normal builds share a site-packages folder on Windows so
# we must build free-threaded separately
windows-free-threaded:
Expand All @@ -211,7 +263,7 @@ jobs:
allow-prereleases: true
architecture: ${{ matrix.target }}
- name: Build wheels
uses: PyO3/maturin-action@v1
uses: PyO3/maturin-action@aef21716ff3dcae8a1c301d23ec3e4446972a6e3 # v1.49.1
with:
target: ${{ matrix.target }}
args: --release --out dist --interpreter '3.13t'
Expand Down Expand Up @@ -249,7 +301,7 @@ jobs:
pypy3.11
allow-prereleases: true
- name: Build wheels
uses: PyO3/maturin-action@v1
uses: PyO3/maturin-action@aef21716ff3dcae8a1c301d23ec3e4446972a6e3 # v1.49.1
with:
target: ${{ matrix.target }}
args: --release --out dist --interpreter '3.9 3.10 3.11 3.12 3.13 3.13t pypy3.9 pypy3.10 pypy3.11'
Expand All @@ -271,7 +323,7 @@ jobs:
with:
python-version: 3.13
- name: Build an sdist
uses: PyO3/maturin-action@v1
uses: PyO3/maturin-action@aef21716ff3dcae8a1c301d23ec3e4446972a6e3 # v1.49.1
with:
command: sdist
args: --out dist
Expand All @@ -282,7 +334,8 @@ jobs:
path: dist

release:
needs: [manylinux, musllinux, windows, windows-free-threaded, macos]
needs:
[manylinux, musllinux, windows, windows-arm, windows-free-threaded, macos]
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/')"
environment:
Expand All @@ -298,7 +351,7 @@ jobs:
pattern: dist-*
merge-multiple: true
- name: Publish to PyPI
uses: PyO3/maturin-action@v1
uses: PyO3/maturin-action@aef21716ff3dcae8a1c301d23ec3e4446972a6e3 # v1.49.1
with:
command: upload
args: --non-interactive --skip-existing *
Expand Down
0