Add Windows ARM64 support to CI - #1846
Open
chinazhangchao wants to merge 2 commits into
Open
Conversation
chinazhangchao
marked this pull request as ready for review
August 19, 2026 08:10
|
@chinazhangchao Skipping tests would be a bad idea. You can install PostgreSQL on the WoA runners like I have done in this PR: psycopg/psycopg#1385 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi @dvarrazzo , I'm from Microsoft and recently I'm working on improving Python ecosystem support for Windows on Arm.
So I updates the CI workflows to add support for Windows ARM64 builds and tests. Could you please help to review? Thanks.
Test results:
https://github.com/chinazhangchao/psycopg2/actions/runs/32325062129
Windows ARM64 support and workflow updates:
windowsjob in.github/workflows/packages.ymlto addwin_arm64to the build matrix, conditionally select the appropriate runner image, and exclude unsupported Python versions for ARM64.arm64-windowsfor ARM64,x64-windows-releasefor AMD64) and setCIBW_ARCHS_WINDOWSaccordingly. [1] [2]Build script improvements:
scripts/build/wheel_win32_before_build.batto setVCPKG_TARGET_TRIPLETbased on architecture and install the correctlibpqpackage for each triplet.Stub script enhancements:
pg_config_vcpkg_stubto support both AMD64 and ARM64, checking the platform and triplet, and constructing the vcpkg path dynamically. The documentation was also updated to reflect the new usage. [1] [2]