GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — CI: Add support for building NumPy with LLVM for Win-ARM64 by MugundanMCW · Pull Request #29215 · numpy/numpy

CI: Add support for building NumPy with LLVM for Win-ARM64 #29215

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.

Sign up for GitHub

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
Mousius merged 6 commits into numpy:main from MugundanMCW:WOA_CLANG_CI
Jun 18, 2025

Uh oh!

There was an error while loading. Please reload this page.

Merged

CI: Add support for building NumPy with LLVM for Win-ARM64 #29215

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
6 commits
Select commit Hold shift + click to select a range
aea8869
CI: Add WoA validation setup to windows.yml
MugundanMCW Jun 17, 2025
d8c4f2b
CI: Create action.yml for LLVM Win-ARM64 as reusable blocks
MugundanMCW Jun 17, 2025
f02bb58
CI: Modify wheel.yml to use clang-cl for Win-ARM64
MugundanMCW Jun 17, 2025
fb0dff6
CI: fix action.yml naming
MugundanMCW Jun 17, 2025
f36c0da
CI: Fix reusable LLVM block
MugundanMCW Jun 17, 2025
b6a6740
CI: Add conditions to check hash of LLVM package
MugundanMCW Jun 18, 2025
File filter
Filter by extension


Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view

There are no files selected for viewing

22 changes: 22 additions & 0 deletions 22 .github/windows_arm64_steps/action.yml
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Build Dependencies(Win-ARM64)
description: "Setup LLVM for Win-ARM64 builds"

runs:
using: "composite"
steps:
- name: Install LLVM with checksum verification
shell: pwsh
run: |
Invoke-WebRequest https://github.com/llvm/llvm-project/releases/download/llvmorg-20.1.6/LLVM-20.1.6-woa64.exe -UseBasicParsing -OutFile LLVM-woa64.exe
Comment thread
MugundanMCW marked this conversation as resolved.
Resolved

Uh oh!

There was an error while loading. Please reload this page.

$expectedHash = "92f69a1134e32e54b07d51c6e24d9594852f6476f32c3d70471ae00fffc2d462"
$fileHash = (Get-FileHash -Path "LLVM-woa64.exe" -Algorithm SHA256).Hash
if ($fileHash -ne $expectedHash) {
Write-Error "Checksum verification failed. The downloaded file may be corrupted or tampered with."
exit 1
}
Start-Process -FilePath ".\LLVM-woa64.exe" -ArgumentList "/S" -Wait
echo "C:\Program Files\LLVM\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
echo "CC=clang-cl" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
echo "CXX=clang-cl" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
echo "FC=flang-new" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append

6 changes: 2 additions & 4 deletions 6 .github/workflows/wheels.yml
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,9 @@ jobs:
with:
architecture: 'x86'

- name: Setup MSVC arm64
- name: Setup LLVM for Windows ARM64
if: ${{ matrix.buildplat[1] == 'win_arm64' }}
uses: bus1/cabuild/action/msdevshell@e22aba57d6e74891d059d66501b6b5aed8123c4d # v1
with:
architecture: 'arm64'
uses: ./.github/windows_arm64_steps

- name: pkg-config-for-win
run: |
Expand Down
73 changes: 73 additions & 0 deletions 73 .github/workflows/windows.yml
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,79 @@ jobs:
run: |
spin test -- --timeout=600 --durations=10

python64bit_openblas_winarm64:
name: arm64, LPARM64 OpenBLAS
runs-on: windows-11-arm
# To enable this job on a fork, comment out:
if: github.repository == 'numpy/numpy'
strategy:
fail-fast: false
matrix:
compiler-pyversion:
- ["MSVC", "3.11"]
- ["Clang-cl", "3.14t-dev"]

steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
submodules: recursive
fetch-tags: true
persist-credentials: false

- name: Setup Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: ${{ matrix.compiler-pyversion[1] }}
architecture: arm64

- name: Setup MSVC
if: matrix.compiler-pyversion[0] == 'MSVC'
uses: bus1/cabuild/action/msdevshell@e22aba57d6e74891d059d66501b6b5aed8123c4d # v1
with:
architecture: arm64

- name: Install build dependencies from PyPI
run: |
pip install -r requirements/build_requirements.txt

- name: Install pkg-config
run: |
choco install -y --stoponfirstfailure --checksum 6004DF17818F5A6DBF19CB335CC92702 pkgconfiglite
echo "PKG_CONFIG_PATH=${{ github.workspace }}/.openblas" >> $env:GITHUB_ENV

- name: Install Clang-cl
if: matrix.compiler-pyversion[0] == 'Clang-cl'
uses: ./.github/windows_arm64_steps

- name: Install NumPy (MSVC)
if: matrix.compiler-pyversion[0] == 'MSVC'
run: |
pip install -r requirements/ci_requirements.txt
spin build --with-scipy-openblas=32 -j2 -- --vsenv

- name: Install NumPy (Clang-cl)
if: matrix.compiler-pyversion[0] == 'Clang-cl'
run: |
"[binaries]","c = 'clang-cl'","cpp = 'clang-cl'","ar = 'llvm-lib'","c_ld = 'lld-link'","cpp_ld = 'lld-link'" | Out-File $PWD/clang-cl-arm64.ini -Encoding ascii
Comment thread
MugundanMCW marked this conversation as resolved.
Resolved

Uh oh!

There was an error while loading. Please reload this page.

pip install -r requirements/ci_requirements.txt
spin build --with-scipy-openblas=32 -j2 -- --vsenv --native-file=$PWD/clang-cl-arm64.ini

- name: Meson Log
shell: bash
if: ${{ failure() }}
run: |
cat build/meson-logs/meson-log.txt

- name: Install test dependencies
run: |
python -m pip install -r requirements/test_requirements.txt
python -m pip install threadpoolctl

- name: Run test suite
run: |
spin test -- --timeout=600 --durations=10

msvc_python_no_openblas:
name: MSVC, ${{ matrix.architecture }} Python , no BLAS
runs-on: ${{ matrix.os }}
Expand Down
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.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.