Skip to content

Commit d75f7e4

Browse files
authored
Merge pull request #48 from MacPython/migrate
move builds to github actions, update to BUFFERSIZE=20 and OpenBLAS v0.3.13
2 parents 0bac489 + c4cc3a8 commit d75f7e4

File tree

5 files changed

+99
-60
lines changed

5 files changed

+99
-60
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This is a basic workflow to help you get started with Actions
22

3-
name: CI
3+
name: Windows build
44

55
defaults:
66
run:
@@ -13,7 +13,7 @@ on:
1313
branches: [ master ]
1414

1515
env:
16-
OPENBLAS_COMMIT: "v0.3.12"
16+
OPENBLAS_COMMIT: "v0.3.13"
1717
OPENBLAS_ROOT: "c:\\opt"
1818

1919
jobs:

.github/workflows/multibuild.yml

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
name: Linux,macOS build
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ${{ matrix.os }}
12+
defaults:
13+
run:
14+
shell: bash
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
os: [ubuntu-latest, macos-latest]
19+
platform: [x64]
20+
PLAT: [i686, x86_64]
21+
INTERFACE64: ['', '1']
22+
MB_ML_VER: ['', 2010, 2014]
23+
exclude:
24+
- os: macos-latest
25+
PLAT: i686
26+
- os: macos-latest
27+
MB_ML_VER: 2010
28+
- os: macos-latest
29+
MB_ML_VER: 2014
30+
- PLAT: i686
31+
INTERFACE64: '1'
32+
env:
33+
REPO_DIR: OpenBLAS
34+
OPENBLAS_COMMIT: v0.3.13
35+
MACOSX_DEPLOYMENT_TARGET: 10.9
36+
MB_PYTHON_VERSION: ${{ matrix.python-version }}
37+
TRAVIS_PYTHON_VERSION: ${{ matrix.python-version }}
38+
MB_ML_VER: ${{ matrix.MB_ML_VER }}
39+
INTERFACE64: ${{ matrix.INTERFACE64 }}
40+
BUILD_DIR: ${{ github.workspace }}
41+
SCIPY_WHEELS_NIGHTLY_ACCESS: ${{ secrets.SCIPY_WHEELS_NIGHTLY_ACCESS }}
42+
MULTIBUILD_WHEELS_STAGING_ACCESS: ${{ secrets.MULTIBUILD_WHEELS_STAGING_BUILD }}
43+
PLAT: ${{ matrix.PLAT }}
44+
45+
steps:
46+
- uses: actions/checkout@v2
47+
with:
48+
submodules: recursive
49+
fetch-depth: 0
50+
- name: Set up Python 3.8
51+
uses: actions/setup-python@v2
52+
with:
53+
python-version: 3.8
54+
- name: Set extra env
55+
run: |
56+
if [ "macos-latest" == "${{ matrix.os }}" ]; then echo "TRAVIS_OS_NAME=osx" >> $GITHUB_ENV; else echo "TRAVIS_OS_NAME=${{ matrix.os }}" >> $GITHUB_ENV; fi
57+
echo "DOCKER_TEST_IMAGE=$(echo multibuild/xenial_${{ matrix.PLAT}})" >> $GITHUB_ENV;
58+
- name: Print some Environment variable
59+
run: |
60+
echo "TRAVIS_OS_NAME: ${TRAVIS_OS_NAME}"
61+
echo "PLAT: ${PLAT}"
62+
echo "DOCKER_TEST_IMAGE: ${DOCKER_TEST_IMAGE}"
63+
- name: Install VirtualEnv
64+
run: |
65+
python -m pip install --upgrade pip
66+
pip install virtualenv
67+
- name: Build and Install Wheels
68+
run: |
69+
source travis-ci/build_steps.sh
70+
echo "------ BEFORE BUILD ---------"
71+
before_build
72+
echo "------ CLEAN CODE --------"
73+
clean_code $REPO_DIR $OPENBLAS_COMMIT
74+
echo "------ BUILD LIB --------"
75+
build_lib "$PLAT" "$INTERFACE64"
76+
- name: Upload tarballs
77+
run: |
78+
set -ex
79+
TOKEN=${{ secrets.MULTIBUILD_WHEELS_STAGING_ACCESS }}
80+
if [ "$TOKEN" == "" ]; then
81+
# The token is available when under the MacPython org, not on forks
82+
echo "secrets.MULTIBUILD_WHEELS_STAGING_ACCESS is not defined: skipping";
83+
else
84+
pip install git+https://github.com/Anaconda-Server/anaconda-client;
85+
# The first -t option refers to the token, the second is the "type"
86+
# option to the "upload" command
87+
anaconda -t ${TOKEN} upload \
88+
--no-progress --skip -u multibuild-wheels-staging \
89+
-t file -p "openblas-libs" \
90+
-v "$(cd OpenBLAS && git describe --tags --abbrev=8)" \
91+
-d "OpenBLAS for multibuild wheels" \
92+
-s "OpenBLAS for multibuild wheels" \
93+
libs/openblas*.tar.gz;
94+
fi

.travis.yml

Lines changed: 1 addition & 56 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=v0.3.12
5+
- OPENBLAS_COMMIT=v0.3.13
66
- REPO_DIR=OpenBLAS
77
# Following generated with:
88
# travis encrypt -r MacPython/openblas-libs OPENBLAS_LIBS_STAGING_UPLOAD_TOKEN=<secret token value>
@@ -23,32 +23,6 @@ services: docker
2323

2424
matrix:
2525
include:
26-
- os: linux
27-
env:
28-
- PLAT=x86_64
29-
- os: linux
30-
env:
31-
- PLAT=i686
32-
- os: osx
33-
language: objective-c
34-
env:
35-
- MB_PYTHON_VERSION=3.7
36-
- PLAT=x86_64
37-
- os: osx
38-
language: objective-c
39-
env:
40-
- MB_PYTHON_VERSION=3.7
41-
- PLAT=i686
42-
- os: linux
43-
env:
44-
- PLAT=x86_64
45-
- INTERFACE64=1
46-
- os: osx
47-
language: objective-c
48-
env:
49-
- MB_PYTHON_VERSION=3.7
50-
- PLAT=x86_64
51-
- INTERFACE64=1
5226
- os: linux
5327
arch: arm64
5428
env:
@@ -88,35 +62,6 @@ matrix:
8862
- INTERFACE64=1
8963
- MB_ML_VER=2014
9064
- DOCKER_TEST_IMAGE=multibuild/xenial_{PLAT}
91-
# linux manylinux2010
92-
- os: linux
93-
env:
94-
- PLAT=x86_64
95-
- MB_ML_VER=2010
96-
- os: linux
97-
env:
98-
- PLAT=i686
99-
- MB_ML_VER=2010
100-
- os: linux
101-
env:
102-
- PLAT=x86_64
103-
- INTERFACE64=1
104-
- MB_ML_VER=2010
105-
106-
# linux manylinux2014
107-
- os: linux
108-
env:
109-
- PLAT=x86_64
110-
- MB_ML_VER=2014
111-
- os: linux
112-
env:
113-
- PLAT=i686
114-
- MB_ML_VER=2014
115-
- os: linux
116-
env:
117-
- PLAT=x86_64
118-
- INTERFACE64=1
119-
- MB_ML_VER=2014
12065

12166
before_install:
12267
- source travis-ci/build_steps.sh

tools/build_openblas.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ OPENBLAS_VERSION=$(git describe --tags)
6868
export LIBNAMESUFFIX=${OPENBLAS_VERSION}-${GCC_TAG}
6969
make BINARY=$BUILD_BITS DYNAMIC_ARCH=1 USE_THREAD=1 USE_OPENMP=0 \
7070
NUM_THREADS=24 NO_WARMUP=1 NO_AFFINITY=1 CONSISTENT_FPCSR=1 \
71-
BUILD_LAPACK_DEPRECATED=1 TARGET=PRESCOTT \
71+
BUILD_LAPACK_DEPRECATED=1 TARGET=PRESCOTT BUFFERSIZE=20\
7272
COMMON_OPT="$cflags" \
7373
FCOMMON_OPT="$fflags" \
7474
MAX_STACK_ALLOC=2048 \

travis-ci/build_steps.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ function do_build_lib {
124124
set -x
125125
(cd OpenBLAS \
126126
&& patch_source \
127-
&& make DYNAMIC_ARCH=1 USE_OPENMP=0 NUM_THREADS=64 BINARY=$bitness $interface64_flags $target_flags > /dev/null \
127+
&& make BUFFERSIZE=20 DYNAMIC_ARCH=1 USE_OPENMP=0 NUM_THREADS=64 BINARY=$bitness $interface64_flags $target_flags > /dev/null \
128128
&& make PREFIX=$BUILD_PREFIX $interface64_flags install )
129129
stop_spinner
130130
local version=$(cd OpenBLAS && git describe --tags --abbrev=8)

0 commit comments

Comments
 (0)