Skip to content

Commit 19c81a0

Browse files
authored
Merge pull request #3300 from martin-frbg/AzureAlpine
Move Alpine Linux build job from Travis to Azure
2 parents e008646 + 498479b commit 19c81a0

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

azure-pipelines.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,3 +147,21 @@ jobs:
147147
export ANDROID_NDK_HOME=/usr/local/share/android-ndk
148148
make TARGET=ARMV7 ONLY_CBLAS=1 CC=$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/darwin-x86_64/bin/armv7a-linux-androideabi21-clang AR=$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-ar HOSTCC=gcc ARM_SOFTFP_ABI=1 -j4
149149
150+
- job: ALPINE_MUSL
151+
pool:
152+
vmImage: 'ubuntu-latest'
153+
steps:
154+
- script: |
155+
wget 'https://raw.githubusercontent.com/alpinelinux/alpine-chroot-install/v0.9.0/alpine-chroot-install' \
156+
&& echo 'e5dfbbdc0c4b3363b99334510976c86bfa6cb251 alpine-chroot-install' | sha1sum -c || exit 1
157+
alpine() { /alpine/enter-chroot -u "$USER" "$@"; }
158+
sudo sh alpine-chroot-install -p 'build-base gfortran perl linux-headers sudo'
159+
alpine make DYNAMIC_ARCH=1 BINARY=64
160+
alpine make DYNAMIC_ARCH=1 BINARY=64 PREFIX=mytestdir install
161+
alpine ls -l mytestdir/include
162+
alpine echo "// tests that inclusion of openblas_config.h works with musl" >test_install.c
163+
alpine echo "#include <openblas_config.h>" >>test_install.c
164+
alpine echo "int main(){" >> test_install.c
165+
alpine echo "cpu_set_t* cpu_set = NULL;}" >>test_install.c
166+
alpine gcc -Imytestdir/include test_install.c -Lmytestdir/lib -lopenblas -lpthread -lgfortran -o test_install
167+

0 commit comments

Comments
 (0)