@@ -23,30 +23,23 @@ jobs:
23
23
compiler : ["MSVC", "Clang-cl"]
24
24
steps :
25
25
- name : Checkout
26
- uses : actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
26
+ uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
27
27
with :
28
28
submodules : recursive
29
29
fetch-depth : 0
30
30
31
31
- name : Setup Python
32
- uses : actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4.7.0
32
+ uses : actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
33
33
with :
34
34
python-version : ' 3.11'
35
35
36
36
- name : Install build dependencies from PyPI
37
37
run : |
38
38
python -m pip install spin Cython
39
39
40
- - name : Install OpenBLAS (MacPython build)
40
+ - name : Install pkg-config
41
41
run : |
42
- # Download and install pre-built OpenBLAS library with 32-bit
43
- # interfaces. Unpack it in the pkg-config hardcoded path
44
- choco install unzip -y
45
- choco install wget -y
46
42
choco install -y --checksum 6004DF17818F5A6DBF19CB335CC92702 pkgconfiglite
47
- wget https://anaconda.org/multibuild-wheels-staging/openblas-libs/v0.3.21/download/openblas-v0.3.21-win_amd64-gcc_10_3_0.zip
48
- unzip -d c:\opt openblas-v0.3.21-win_amd64-gcc_10_3_0.zip
49
- echo "PKG_CONFIG_PATH=c:\opt\64\lib\pkgconfig;" >> $env:GITHUB_ENV
50
43
51
44
- name : Install Clang-cl
52
45
if : matrix.compiler == 'Clang-cl'
@@ -55,26 +48,26 @@ jobs:
55
48
56
49
- name : Install NumPy (MSVC)
57
50
if : matrix.compiler == 'MSVC'
51
+ env :
52
+ PKG_CONFIG_PATH : ${{ github.workspace }}/.openblas
58
53
run : |
59
- spin build -j2 -- --vsenv
54
+ python -m pip install scipy-openblas32
55
+ spin build --with-scipy-openblas=32 -j2 -- --vsenv
60
56
61
57
- name : Install NumPy (Clang-cl)
62
58
if : matrix.compiler == 'Clang-cl'
59
+ env :
60
+ PKG_CONFIG_PATH : ${{ github.workspace }}/.openblas
63
61
run : |
64
62
"[binaries]","c = 'clang-cl'","cpp = 'clang-cl'","ar = 'llvm-lib'","c_ld = 'lld-link'","cpp_ld = 'lld-link'" | Out-File $PWD/clang-cl-build.ini -Encoding ascii
65
- spin build -j2 -- --vsenv --native-file=$PWD/clang-cl-build.ini
63
+ python -m pip install scipy-openblas32
64
+ spin build --with-scipy-openblas=32 -j2 -- --vsenv --native-file=$PWD/clang-cl-build.ini
66
65
67
- - name : Copy OpenBLAS DLL, write _distributor_init.py
66
+ - name : Meson Log
67
+ shell : bash
68
+ if : ${{ failure() }}
68
69
run : |
69
- # Getting the OpenBLAS DLL to the right place so it loads
70
- $installed_path = "$PWD\build-install\usr\Lib\site-packages"
71
- $numpy_path = "${installed_path}\numpy"
72
- $libs_path = "${installed_path}\numpy.libs"
73
- mkdir ${libs_path}
74
- $ob_path = "C:/opt/64/bin/"
75
- cp $ob_path/*.dll $libs_path
76
- # Write _distributor_init.py to load .libs DLLs.
77
- python -c "from tools import openblas_support; openblas_support.make_init(r'${numpy_path}')"
70
+ cat build/meson-logs/meson-log.txt
78
71
79
72
- name : Install test dependencies
80
73
run : |
@@ -85,19 +78,19 @@ jobs:
85
78
run : |
86
79
spin test
87
80
88
- msvc_32bit_python_openblas :
81
+ msvc_32bit_python_no_openblas :
89
82
name : MSVC, 32-bit Python, no BLAS
90
83
runs-on : windows-2019
91
84
if : " github.repository == 'numpy/numpy'"
92
85
steps :
93
86
- name : Checkout
94
- uses : actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
87
+ uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
95
88
with :
96
89
submodules : recursive
97
90
fetch-depth : 0
98
91
99
92
- name : Setup Python (32-bit)
100
- uses : actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4.7.0
93
+ uses : actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
101
94
with :
102
95
python-version : ' 3.10'
103
96
architecture : ' x86'
0 commit comments