File tree Expand file tree Collapse file tree 2 files changed +10
-24
lines changed Expand file tree Collapse file tree 2 files changed +10
-24
lines changed Original file line number Diff line number Diff line change @@ -19,36 +19,27 @@ jobs:
19
19
fail-fast : false
20
20
matrix :
21
21
os : [ubuntu-latest, macos-11]
22
- platform : [x64]
23
22
PLAT : [i686, x86_64]
24
23
INTERFACE64 : ['0', '1']
25
- MB_ML_VER : ['', 2010, 2014]
24
+ MB_ML_VER : [2014]
26
25
include :
27
26
- os : macos-11
28
27
PLAT : arm64
29
28
INTERFACE64 : ' 1'
30
- platform : [x64]
31
29
- os : macos-11
32
30
PLAT : arm64
33
31
INTERFACE64 : ' 0'
34
- platform : [x64]
35
32
- os : ubuntu-latest
36
33
PLAT : x86_64
37
34
INTERFACE64 : ' 1'
38
35
MB_ML_LIBC : musllinux
39
36
MB_ML_VER : _1_1
40
- platform : x64
41
37
- os : ubuntu-latest
42
38
PLAT : x86_64
43
39
INTERFACE64 : ' 0'
44
40
MB_ML_LIBC : musllinux
45
41
MB_ML_VER : _1_1
46
- platform : [x64]
47
42
exclude :
48
- - os : macos-11
49
- PLAT : i686
50
- - os : macos-11
51
- MB_ML_VER : 2010
52
43
- os : macos-11
53
44
MB_ML_VER : 2014
54
45
- PLAT : i686
78
69
- name : Set extra env
79
70
run : |
80
71
if [ "macos-11" == "${{ matrix.os }}" ]; then
81
- ls /Library/Developer/CommandLineTools/SDKs
82
72
echo "TRAVIS_OS_NAME=osx" >> $GITHUB_ENV;
83
73
echo "LDFLAGS=-L/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/lib" >> $GITHUB_ENV;
84
74
echo "LIBRARY_PATH=-L/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/lib" >> $GITHUB_ENV;
@@ -118,25 +108,17 @@ jobs:
118
108
build_lib "$PLAT" "$INTERFACE64" "0"
119
109
fi
120
110
121
- - name : Build wheel
111
+ - name : Build and test wheel
122
112
run : |
123
-
124
113
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
114
+ brew install patchelf
125
115
source travis-ci/build_wheel.sh
126
116
else
127
- docker run --rm -v $(pwd):/openblas quay.io/pypa/manylinux2014_${PLAT} /bin/bash -xe /openblas/travis-ci/build_wheel.sh
117
+ libc=${MB_ML_LIBC:-manylinux}
118
+ docker_image=quay.io/pypa/${libc}${MB_ML_VER}_${PLAT}
119
+ docker run --rm -v $(pwd):/openblas docker_image /bin/bash -xe /openblas/travis-ci/build_wheel.sh
128
120
fi
129
121
130
- - name : Setup different python to test wheel
131
- uses : actions/setup-python@v4
132
- with :
133
- python-version : " 3.11"
134
-
135
- - name : Test wheel
136
- run : |
137
- python -m pip install --no-index --find-links dist openblas
138
- python -m openblas
139
-
140
122
- uses : actions/upload-artifact@v3
141
123
with :
142
124
path : libs/openblas*.tar.gz
Original file line number Diff line number Diff line change @@ -18,3 +18,7 @@ patchelf --set-soname libopenblas_python.so local/openblas/lib/libopenblas_pytho
18
18
python3.7 -m pip install wheel auditwheel
19
19
python3.7 -m pip wheel -w /tmp/wheelhouse -vv .
20
20
auditwheel repair -w dist/ /tmp/wheelhouse/openblas-* .whl
21
+
22
+ # Test that the wheel works with a different python
23
+ python3.11 -m pip install --no-index --find-links dist openblas
24
+ python3.11 -m openblas
You can’t perform that action at this time.
0 commit comments