1
- name : Test Meson build ( Windows)
1
+ name : Windows tests
2
2
3
3
on :
4
4
pull_request :
5
5
branches :
6
6
- main
7
7
- maintenance/**
8
8
9
- env :
10
- PYTHON_VERSION : 3.11
11
-
12
9
concurrency :
13
10
group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
14
11
cancel-in-progress : true
@@ -17,10 +14,13 @@ permissions:
17
14
contents : read # to fetch code (actions/checkout)
18
15
19
16
jobs :
20
- msvc_64bit_python_openblas :
21
- name : MSVC, x86-64, LP64 OpenBLAS
17
+ python64bit_openblas :
18
+ name : x86-64, LP64 OpenBLAS
22
19
runs-on : windows-2019
23
20
if : " github.repository == 'numpy/numpy'"
21
+ strategy :
22
+ matrix :
23
+ compiler : ["MSVC", "Clang-cl"]
24
24
steps :
25
25
- name : Checkout
26
26
uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
31
31
- name : Setup Python
32
32
uses : actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4.7.0
33
33
with :
34
- python-version : ${{ env.PYTHON_VERSION }}
34
+ python-version : ' 3.11 '
35
35
36
36
- name : Install build dependencies from PyPI
37
37
run : |
@@ -48,10 +48,22 @@ jobs:
48
48
unzip -d c:\opt openblas-v0.3.21-win_amd64-gcc_10_3_0.zip
49
49
echo "PKG_CONFIG_PATH=c:\opt\64\lib\pkgconfig;" >> $env:GITHUB_ENV
50
50
51
- - name : Install NumPy
51
+ - name : Install Clang-cl
52
+ if : matrix.compiler == 'Clang-cl'
53
+ run : |
54
+ choco install llvm -y --version=16.0.6
55
+
56
+ - name : Install NumPy (MSVC)
57
+ if : matrix.compiler == 'MSVC'
52
58
run : |
53
59
spin build -j2 -- --vsenv
54
60
61
+ - name : Install NumPy (Clang-cl)
62
+ if : matrix.compiler == 'Clang-cl'
63
+ run : |
64
+ "[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
66
+
55
67
- name : Copy OpenBLAS DLL, write _distributor_init.py
56
68
run : |
57
69
# Getting the OpenBLAS DLL to the right place so it loads
0 commit comments