Skip to content

Commit 35b5f6a

Browse files
authored
Merge pull request #169 from mattip/travis
fix CI
2 parents 20c179a + df90548 commit 35b5f6a

File tree

5 files changed

+57
-20
lines changed

5 files changed

+57
-20
lines changed

.github/workflows/posix.yml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111

1212
env:
1313
REPO_DIR: OpenBLAS
14-
OPENBLAS_COMMIT: "0929865"
14+
OPENBLAS_COMMIT: "d11e7340"
1515
MACOSX_DEPLOYMENT_TARGET: 10.9
1616

1717
jobs:
@@ -45,6 +45,26 @@ jobs:
4545
INTERFACE64: '0'
4646
MB_ML_LIBC: musllinux
4747
MB_ML_VER: _1_1
48+
49+
# - os: ubuntu-latest
50+
# PLAT: aarch64
51+
# INTERFACE64: '0'
52+
# MB_ML_VER: '2014'
53+
# - os: ubuntu-latest
54+
# PLAT: aarch64
55+
# INTERFACE64: '1'
56+
# MB_ML_VER: '2014'
57+
# - os: ubuntu-latest
58+
# PLAT: aarch64
59+
# INTERFACE64: '0'
60+
# MB_ML_LIBC: musllinux
61+
# MB_ML_VER: _1_1
62+
# - os: ubuntu-latest
63+
# PLAT: aarch64
64+
# INTERFACE64: '1'
65+
# MB_ML_LIBC: musllinux
66+
# MB_ML_VER: _1_1
67+
4868
exclude:
4969
- PLAT: i686
5070
os: macos-13
@@ -78,6 +98,13 @@ jobs:
7898
with:
7999
xcode-version: '14.3'
80100

101+
- name: Allow docker with qemu
102+
if: ${{ matrix.PLAT == 'aarch64' }}
103+
run: |
104+
sudo apt-get update -q -y
105+
sudo apt-get -qq install -y qemu qemu-user-static
106+
sudo docker run --rm --privileged multiarch/qemu-user-static --reset -p yes --credential yes
107+
81108
- name: Print some Environment variable
82109
run: |
83110
echo "PLAT: ${PLAT}"

.github/workflows/windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
workflow_dispatch: null
99

1010
env:
11-
OPENBLAS_COMMIT: "0929865"
11+
OPENBLAS_COMMIT: "d11e7340"
1212
OPENBLAS_ROOT: "c:\\opt"
1313
# Preserve working directory for calls into bash
1414
# Without this, invoking bash will cd to the home directory

.travis.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ env:
22
global:
33
# The archive that gets built has name from ``git describe`` on this
44
# commit.
5-
- OPENBLAS_COMMIT: "0929865"
5+
- OPENBLAS_COMMIT: "d11e7340"
66
- REPO_DIR=OpenBLAS
77

88
sudo: required
@@ -85,14 +85,7 @@ install:
8585
8686
script:
8787
# Build library and collect into libs subdirectory
88-
- |
89-
if [ ${TRAVIS_EVENT_TYPE} == "cron" ]; then
90-
travis wait build_lib "$PLAT" "$INTERFACE64" 1
91-
version=$(cd OpenBLAS && git describe --tags --abbrev=8 | sed -e "s/^v\(.*\)-g.*/\1/" | sed -e "s/-/./g")
92-
sed -e "s/^version = .*/version = \"${version}\"/" -i.bak pyproject.toml
93-
else
94-
travis wait build_lib "$PLAT" "$INTERFACE64" 0
95-
fi
88+
- travis_wait 30 build_on_travis
9689
- libc=${MB_ML_LIBC:-manylinux}
9790
- docker_image=quay.io/pypa/${libc}${MB_ML_VER}_${PLAT}
9891
- docker run --rm -e INTERFACE64="${INTERFACE64}" -e MB_ML_LIBC="${MB_ML_LIBC}" -v $(pwd):/openblas "${docker_image}" /bin/bash -xe /openblas/tools/build_wheel.sh

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ build-backend = "setuptools.build_meta"
88

99
[project]
1010
name = "scipy-openblas64"
11-
# v0.3.27-341-g09298658
12-
version = "0.3.27.341.0"
11+
# v0.3.27-350-gd11e7340
12+
version = "0.3.27.350.0"
1313
requires-python = ">=3.7"
1414
description = "Provides OpenBLAS for python packaging"
1515
readme = "README.md"

tools/build_steps.sh

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ function do_build_lib {
121121
local suffix=$2
122122
local interface64=$3
123123
local nightly=$4
124-
echo "Building with settings: '$plat' '$suffix' '$interface64'"
125124
case $(get_os)-$plat in
126125
Linux-x86_64)
127126
local bitness=64
@@ -169,21 +168,29 @@ function do_build_lib {
169168
esac
170169
interface_flags="$interface_flags SYMBOLPREFIX=scipy_ LIBNAMEPREFIX=scipy_ FIXED_LIBNAME=1"
171170
mkdir -p libs
172-
start_spinner
173171
set -x
174172
git config --global --add safe.directory '*'
175173
pushd OpenBLAS
176174
patch_source
177-
CFLAGS="$CFLAGS -fvisibility=protected -Wno-uninitialized" \
178-
make BUFFERSIZE=20 DYNAMIC_ARCH=1 \
179-
USE_OPENMP=0 NUM_THREADS=64 \
180-
BINARY=$bitness $interface_flags $target_flags shared > /dev/null
175+
echo start building
176+
if [ -v dynamic_list ]; then
177+
CFLAGS="$CFLAGS -fvisibility=protected -Wno-uninitialized" \
178+
make BUFFERSIZE=20 DYNAMIC_ARCH=1 \
179+
USE_OPENMP=0 NUM_THREADS=64 \
180+
DYNAMIC_LIST="$dynamic_list" \
181+
BINARY=$bitness $interface_flags $target_flags shared 2>&1 1>/dev/null
182+
else
183+
CFLAGS="$CFLAGS -fvisibility=protected -Wno-uninitialized" \
184+
make BUFFERSIZE=20 DYNAMIC_ARCH=1 \
185+
USE_OPENMP=0 NUM_THREADS=64 \
186+
BINARY=$bitness $interface_flags $target_flags shared 2>&1 1>/dev/null
187+
fi
188+
echo done building, now testing
181189
make BUFFERSIZE=20 DYNAMIC_ARCH=1 \
182190
USE_OPENMP=0 NUM_THREADS=64 \
183191
BINARY=$bitness $interface_flags $target_flags tests
184192
make PREFIX=$BUILD_PREFIX $interface_flags install
185193
popd
186-
stop_spinner
187194
if [ "$nightly" = "1" ]; then
188195
local version="HEAD"
189196
else
@@ -213,3 +220,13 @@ function do_build_lib {
213220
$BUILD_PREFIX/lib/pkgconfig/scipy-openblas* \
214221
$BUILD_PREFIX/lib/cmake/openblas
215222
}
223+
224+
function build_on_travis {
225+
if [ ${TRAVIS_EVENT_TYPE} == "cron" ]; then
226+
build_lib "$PLAT" "$INTERFACE64" 1
227+
version=$(cd OpenBLAS && git describe --tags --abbrev=8 | sed -e "s/^v\(.*\)-g.*/\1/" | sed -e "s/-/./g")
228+
sed -e "s/^version = .*/version = \"${version}\"/" -i.bak pyproject.toml
229+
else
230+
build_lib "$PLAT" "$INTERFACE64" 0
231+
fi
232+
}

0 commit comments

Comments
 (0)