@@ -22,15 +22,10 @@ jobs:
22
22
23
23
strategy :
24
24
matrix :
25
- include :
26
- - INTERFACE64 : 1
27
- BUILD_BITS : 64
28
- - INTERFACE64 : 0
29
- BUILD_BITS : 32
25
+ INTERFACE64 : ['1', '0']
30
26
31
27
env :
32
28
INTERFACE64 : ${{ matrix.INTERFACE64 }}
33
- BUILD_BITS : ${{ matrix.BUILD_BITS }}
34
29
35
30
steps :
36
31
@@ -62,22 +57,30 @@ jobs:
62
57
pip install cmake
63
58
get-command cmake
64
59
60
+ - name : Set env variables
61
+ run : |
62
+ if ( ${{ matrix.INTERFACE64 }} -eq "1" ) {
63
+ echo "INTERFACE_BITS=64" >> $env:GITHUB_ENV
64
+ } else {
65
+ echo "INTERFACE_BITS=32" >> $env:GITHUB_ENV
66
+ }
67
+
65
68
- name : Build
66
69
run : |
67
70
git submodule update --init --recursive
68
- if ($env:INTERFACE64 -eq "1") { .\tools\build_steps_win_arm64.bat 64 64 } else { .\tools\build_steps_win_arm64.bat }
71
+ .\tools\build_steps_win_arm64.bat 64 ${env:INTERFACE_BITS }
69
72
70
73
- name : Pack
71
74
run : |
72
75
cd local
73
- cp -r "scipy_openblas${env:BUILD_BITS }" $env:BUILD_BITS
74
- 7z a ../builds/openblas-${env:PLAT}-${env:INTERFACE64}.zip -tzip $env:BUILD_BITS
76
+ cp -r "scipy_openblas${env:INTERFACE_BITS }" $env:INTERFACE_BITS
77
+ 7z a ../builds/openblas-${env:PLAT}-${env:INTERFACE64}.zip -tzip $env:INTERFACE_BITS
75
78
76
- - name : Test ${{ matrix.BUILD_BITS }}-bit interface wheel
79
+ - name : Test ${{ matrix.INTERFACE_BITS }}-bit interface wheel
77
80
run : |
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())"
81
+ python -m pip install --no-index --find-links dist scipy_openblas${env:INTERFACE_BITS }
82
+ python -m scipy_openblas${env:INTERFACE_BITS }
83
+ python -c "import scipy_openblas${env:INTERFACE_BITS }; print(scipy_openblas${env:INTERFACE_BITS }.get_pkg_config())"
81
84
82
85
83
86
with :
0 commit comments