diff options
author | Kevin Daudt <kdaudt@alpinelinux.org> | 2020-12-15 22:34:03 +0100 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2021-12-14 16:33:24 +0000 |
commit | ada3314220d77aa31cca0fc76945cef215b36e0d (patch) | |
tree | 91c26007a87d70f7d46136a9083b0267ad00325f | |
parent | 81d8d2b3f4e7d4fff65bcac8bc11c787054df1a5 (diff) | |
download | apk-tools-ada3314220d77aa31cca0fc76945cef215b36e0d.tar.gz apk-tools-ada3314220d77aa31cca0fc76945cef215b36e0d.tar.bz2 apk-tools-ada3314220d77aa31cca0fc76945cef215b36e0d.tar.xz apk-tools-ada3314220d77aa31cca0fc76945cef215b36e0d.zip |
ci: add job to build static binary
-rw-r--r-- | .gitlab-ci.yml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3b1d7f4..ebee9db 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,6 @@ stages: - test + - build test:alpine: image: alpine @@ -36,3 +37,28 @@ test:debian: tags: - docker-alpine - x86_64 + +build-static: + stage: build + image: alpinelinux/build-base + script: + - abuild-apk add make gcc git musl-dev openssl-dev linux-headers zlib-dev lua5.3-dev lua5.3-lzlib zlib-static openssl-libs-static + - make -j$(nproc) static + - cp src/apk.static src/apk.static-$ARCH + parallel: + matrix: + - ARCH: + - x86_64 + - x86 + - armv7 + - armhf + - aarch64 + - s390x + - ppc64le + - riscv64 + artifacts: + paths: + - src/apk.static-* + tags: + - docker-alpine + - $ARCH |