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 21:00:20 +0200 |
commit | 18bcc4a5b7c7b635251717c2a6a4b2cf4e814564 (patch) | |
tree | 8e9fa8a6260626f4142ad2b49b9c9899bc3b2cb6 | |
parent | 3dd27db09baffd87c1160aa9501dfafd428acae3 (diff) | |
download | apk-tools-18bcc4a5b7c7b635251717c2a6a4b2cf4e814564.tar.gz apk-tools-18bcc4a5b7c7b635251717c2a6a4b2cf4e814564.tar.bz2 apk-tools-18bcc4a5b7c7b635251717c2a6a4b2cf4e814564.tar.xz apk-tools-18bcc4a5b7c7b635251717c2a6a4b2cf4e814564.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 1b97a01..e298e0e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,6 @@ stages: - test + - build test:alpine: image: alpine @@ -24,3 +25,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 |