Skip to content

Add Windows ARM64 Build configuration#5145

Merged
davidhewitt merged 9 commits into
PyO3:mainfrom
tonybaloney:patch-1
May 19, 2025
Merged

Add Windows ARM64 Build configuration#5145
davidhewitt merged 9 commits into
PyO3:mainfrom
tonybaloney:patch-1

Conversation

@tonybaloney

Copy link
Copy Markdown
Contributor

This PR adds a build configuration for Windows on ARM64 using the new GitHub runner.

@tonybaloney

Copy link
Copy Markdown
Contributor Author
thread 'main' panicked at C:\Users\runneradmin\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\bindgen-0.69.5\lib.rs:622:31:
    Unable to find libclang: "couldn't find any valid shared libraries matching: ['clang.dll', 'libclang.dll'], set the `LIBCLANG_PATH` environment variable to a path where one of these files can be found (invalid: [(C:\\Program Files\\LLVM\\bin\\libclang.dll: invalid DLL (x86-64))])"
    stack backtrace:
    note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
  nox > Command cargo run --manifest-path=pyo3-ffi-check/Cargo.toml failed with exit code 101

@tonybaloney

Copy link
Copy Markdown
Contributor Author

Related actions/runner-images#3316

@davidhewitt

Copy link
Copy Markdown
Member

Ungh; presumably these runners also have an x86_64 install of llvm. We presumably need to figure out how to set up an arm install.

Maybe https://github.com/marketplace/actions/install-llvm-and-clang ?

@davidhewitt

Copy link
Copy Markdown
Member

Looks promising!

@davidhewitt

Copy link
Copy Markdown
Member

This looks like it succeeded! Windows 3.14 issue is pre-existing and needs investigation when I can get to a PC.

As this is a CI-only change, I'm just going to send this now.

@davidhewitt davidhewitt added this pull request to the merge queue May 19, 2025
Merged via the queue into PyO3:main with commit 3b40ba5 May 19, 2025
94 of 95 checks passed
@tonybaloney tonybaloney deleted the patch-1 branch June 5, 2025 22:24
davidhewitt added a commit that referenced this pull request Jun 11, 2025
* Add Windows ARM64 Build configuration

* Add change notes

* add llvm install

* fix yml syntax

* correct `os` in `if` clause

* add llvm version

* fix clippy, ignore coverage for now

* correct `if` condition

---------

Co-authored-by: David Hewitt <mail@davidhewitt.dev>
davidhewitt added a commit that referenced this pull request Jun 12, 2025
* Add Windows ARM64 Build configuration

* Add change notes

* add llvm install

* fix yml syntax

* correct `os` in `if` clause

* add llvm version

* fix clippy, ignore coverage for now

* correct `if` condition

---------

Co-authored-by: David Hewitt <mail@davidhewitt.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants