Skip to content

Commit 9bd3387

Browse files
committed
WIP, BLD: add ppc64le, aarch64, s390x builds
1 parent e1dedfb commit 9bd3387

File tree

5 files changed

+32
-76
lines changed

5 files changed

+32
-76
lines changed

.travis.yml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ env:
44
# commit.
55
- BUILD_COMMIT=c815b8f
66
- REPO_DIR=OpenBLAS
7-
- PLAT=x86_64
87
- WHEELHOUSE_UPLOADER_USERNAME=travis-worker
98
# Following generated with
109
# travis encrypt -r MacPython/openblas-libs WHEELHOUSE_UPLOADER_SECRET=<the api key>
@@ -15,28 +14,49 @@ env:
1514

1615
language: python
1716
sudo: required
18-
dist: trusty
17+
dist: xenial
1918
services: docker
2019

2120
matrix:
2221
include:
2322
- os: linux
23+
env:
24+
- PLAT=x86_64
2425
- os: linux
2526
env:
2627
- PLAT=i686
2728
- os: osx
2829
language: objective-c
30+
env:
31+
- PLAT=x86_64
2932
- os: osx
3033
language: objective-c
3134
env:
3235
- PLAT=i686
3336
- os: linux
3437
env:
38+
- PLAT=x86_64
3539
- INTERFACE64=1
3640
- os: osx
3741
language: objective-c
3842
env:
43+
- PLAT=x86_64
3944
- INTERFACE64=1
45+
- os: linux
46+
arch: arm64
47+
env:
48+
- PLAT=aarch64
49+
- MB_ML_VER=2014
50+
- os: linux
51+
arch: s390x
52+
env:
53+
- MB_ML_VER=2014
54+
- PLAT=s390x
55+
- os: linux
56+
arch: ppc64le
57+
env:
58+
- MB_ML_VER=2014
59+
- PLAT=ppc64le
4060

4161
before_install:
4262
- source travis-ci/build_steps.sh

OpenBLAS

appveyor.yml

Lines changed: 0 additions & 71 deletions
This file was deleted.

travis-ci/build_steps.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,19 @@ function build_lib {
3636
# Depends on globals
3737
# BUILD_PREFIX - install suffix e.g. "/usr/local"
3838
# GFORTRAN_DMG
39+
# MB_ML_VER
40+
set -x
3941
local plat=${1:-$PLAT}
4042
local interface64=${2:-$INTERFACE64}
43+
local manylinux=${MB_ML_VER:-1}
4144
# Make directory to store built archive
4245
if [ -n "$IS_OSX" ]; then
4346
# Do build, add gfortran hash to end of name
4447
do_build_lib "$plat" "gf_${GFORTRAN_SHA:0:7}" "$interface64"
4548
return
4649
fi
4750
# Manylinux wrapper
48-
local docker_image=quay.io/pypa/manylinux1_$plat
51+
local docker_image=quay.io/pypa/manylinux${manylinux}_${plat}
4952
docker pull $docker_image
5053
# Docker sources this script, and runs `do_build_lib`
5154
docker run --rm \
@@ -77,13 +80,17 @@ function do_build_lib {
7780
#
7881
# Depends on globals
7982
# BUILD_PREFIX - install suffix e.g. "/usr/local"
83+
set -v
8084
local plat=$1
8185
local suffix=$2
8286
local interface64=$3
8387
echo "Building with settings: '$plat' '$suffix' '$interface64'"
8488
case $plat in
8589
x86_64) local bitness=64 ;;
8690
i686) local bitness=32 ;;
91+
aarch64) local bitness=64 ;;
92+
s390x) local bitness=64 ;;
93+
ppc64le) local bitness=64 ;;
8794
*) echo "Strange plat value $plat"; exit 1 ;;
8895
esac
8996
case $interface64 in

0 commit comments

Comments
 (0)