Skip to content

Commit b911525

Browse files
committed
arm32 build
1 parent 7ff44e0 commit b911525

File tree

3 files changed

+48
-41
lines changed

3 files changed

+48
-41
lines changed

.drone.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,30 @@ steps:
2222
- make -C ctest $COMMON_FLAGS
2323
- make -C utest $COMMON_FLAGS
2424

25+
---
26+
kind: pipeline
27+
name: arm32_gcc_make
28+
29+
platform:
30+
os: linux
31+
arch: arm64
32+
33+
steps:
34+
- name: Build and Test
35+
image: ubuntu:18.04
36+
environment:
37+
CC: gcc
38+
COMMON_FLAGS: 'DYNAMIC_ARCH=1 TARGET=ARMV6 NUM_THREADS=32'
39+
commands:
40+
- echo "MAKE_FLAGS:= $COMMON_FLAGS"
41+
- apt-get update -y
42+
- apt-get install -y make $CC gfortran perl
43+
- $CC --version
44+
- make QUIET_MAKE=1 $COMMON_FLAGS
45+
- make -C test $COMMON_FLAGS
46+
- make -C ctest $COMMON_FLAGS
47+
- make -C utest $COMMON_FLAGS
48+
2549
---
2650
kind: pipeline
2751
name: arm64_clang_make
@@ -46,6 +70,30 @@ steps:
4670
- make -C ctest $COMMON_FLAGS
4771
- make -C utest $COMMON_FLAGS
4872

73+
---
74+
kind: pipeline
75+
name: arm32_clang_cmake
76+
77+
platform:
78+
os: linux
79+
arch: arm
80+
81+
steps:
82+
- name: Build and Test
83+
image: ubuntu:18.04
84+
environment:
85+
CC: clang
86+
CMAKE_FLAGS: '-DDYNAMIC_ARCH=1 -DTARGET=ARMV6 -DNUM_THREADS=32 -DNOFORTRAN=ON -DBUILD_WITHOUT_LAPACK=ON'
87+
commands:
88+
- echo "CMAKE_FLAGS:= $CMAKE_FLAGS"
89+
- apt-get update -y
90+
- apt-get install -y make $CC g++ perl cmake
91+
- $CC --version
92+
- mkdir build && cd build
93+
- cmake $CMAKE_FLAGS ..
94+
- make -j
95+
- ctest
96+
4997
---
5098
kind: pipeline
5199
name: arm64_gcc_cmake

.travis.yml

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -173,27 +173,6 @@ matrix:
173173
env:
174174
- BTYPE="BINARY=32"
175175

176-
- &emulated-arm
177-
dist: trusty
178-
sudo: required
179-
services: docker
180-
env: IMAGE_ARCH=arm32 TARGET_ARCH=ARMV6 COMPILER=clang
181-
name: "Emulated Build for ARMV6 with clang"
182-
before_install: sudo docker run --rm --privileged multiarch/qemu-user-static:register --reset
183-
script: |
184-
echo "FROM openblas/alpine:${IMAGE_ARCH}
185-
COPY . /tmp/openblas
186-
RUN mkdir /tmp/openblas/build && \
187-
cd /tmp/openblas/build && \
188-
CC=${COMPILER} cmake -D DYNAMIC_ARCH=OFF \
189-
-D TARGET=${TARGET_ARCH} \
190-
-D BUILD_SHARED_LIBS=ON \
191-
-D BUILD_WITHOUT_LAPACK=ON \
192-
-D BUILD_WITHOUT_CBLAS=ON \
193-
-D CMAKE_BUILD_TYPE=Release ../ && \
194-
cmake --build ." > Dockerfile
195-
docker build .
196-
197176
# whitelist
198177
branches:
199178
only:

azure-pipelines.yml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,6 @@ trigger:
66
- develop
77

88
jobs:
9-
- job: ARMv6_gcc
10-
pool:
11-
vmImage: 'ubuntu-16.04'
12-
steps:
13-
- script: |
14-
docker run --rm --privileged multiarch/qemu-user-static:register --reset
15-
echo "FROM openblas/alpine:arm32
16-
COPY . /tmp/openblas
17-
RUN mkdir /tmp/openblas/build && \
18-
cd /tmp/openblas/build && \
19-
CC=gcc cmake -D DYNAMIC_ARCH=OFF \
20-
-D TARGET=ARMV6 \
21-
-D NOFORTRAN=ON \
22-
-D BUILD_SHARED_LIBS=ON \
23-
-D BUILD_WITHOUT_LAPACK=ON \
24-
-D BUILD_WITHOUT_CBLAS=ON \
25-
-D CMAKE_BUILD_TYPE=Release ../ && \
26-
cmake --build ." > Dockerfile
27-
docker build .
28-
displayName: Run ARMV6 docker build
299
# manylinux1 is useful to test because the
3010
# standard Docker container uses an old version
3111
# of gcc / glibc

0 commit comments

Comments
 (0)