Skip to content

Commit a9daa2a

Browse files
authored
Merge pull request #199 from Harishmcw/main
Refactor CI to produce 64-bit integer interface wheels for WoA
2 parents 3425182 + d1bcf29 commit a9daa2a

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

.github/workflows/windows-arm.yml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,24 @@ env:
1414
CHERE_INVOKING: "yes"
1515
BASH_PATH: "C:\\Program Files\\Git\\bin\\bash.exe"
1616
PLAT: arm64
17-
INTERFACE64: 0
18-
BUILD_BITS: 32
1917

2018
jobs:
2119
build:
2220
runs-on: windows-11-arm
2321
timeout-minutes: 90
2422

23+
strategy:
24+
matrix:
25+
include:
26+
- INTERFACE64: 1
27+
BUILD_BITS: 64
28+
- INTERFACE64: 0
29+
BUILD_BITS: 32
30+
31+
env:
32+
INTERFACE64: ${{ matrix.INTERFACE64 }}
33+
BUILD_BITS: ${{ matrix.BUILD_BITS }}
34+
2535
steps:
2636

2737
- uses: actions/checkout@v4.1.1
@@ -55,19 +65,19 @@ jobs:
5565
- name: Build
5666
run: |
5767
git submodule update --init --recursive
58-
.\tools\build_steps_win_arm64.bat
68+
if ($env:INTERFACE64 -eq "1") { .\tools\build_steps_win_arm64.bat 64 64 } else { .\tools\build_steps_win_arm64.bat }
5969
6070
- name: Pack
6171
run: |
6272
cd local
6373
cp -r "scipy_openblas${env:BUILD_BITS}" $env:BUILD_BITS
6474
7z a ../builds/openblas-${env:PLAT}-${env:INTERFACE64}.zip -tzip $env:BUILD_BITS
6575
66-
- name: Test 32-bit interface wheel
76+
- name: Test ${{ matrix.BUILD_BITS }}-bit interface wheel
6777
run: |
68-
python -m pip install --no-index --find-links dist scipy_openblas32
69-
python -m scipy_openblas32
70-
python -c "import scipy_openblas32; print(scipy_openblas32.get_pkg_config())"
78+
python -m pip install --no-index --find-links dist scipy_openblas${env:BUILD_BITS}
79+
python -m scipy_openblas${env:BUILD_BITS}
80+
python -c "import scipy_openblas${env:BUILD_BITS}; print(scipy_openblas${env:BUILD_BITS}.get_pkg_config())"
7181
7282
- uses: actions/upload-artifact@v4.3.0
7383
with:

0 commit comments

Comments
 (0)