From 6d65a901a302dc0d655597b6a6b69b3d10ffbf1c Mon Sep 17 00:00:00 2001 From: Finn Date: Mon, 5 Apr 2021 15:25:42 -0700 Subject: [PATCH] build arm64 deb --- .gitlab-ci.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2b1eefc..4a2ace8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -78,6 +78,7 @@ build:x86:deb: - apt-get update - apt-get install -y git-buildpackage dh-golang bash-completion golang-any golang-github-spf13-cobra-dev golang-github-spf13-viper-dev - apt-get install -y ./*.deb && rm -vf *.deb + - "sed -i 's/^Architecture:.*/Architecture: amd64/g' debian/control" script: - git checkout "${CI_COMMIT_BRANCH}" - go run ./cmd/signaldctl doc -o man @@ -103,6 +104,41 @@ build:x86:deb: - "*.1" expire_in: 1 month +build:aarch64:deb: + stage: build + image: debian:latest + tags: [arm-builder] + before_script: + - apt-get update + - apt-get install -y git-buildpackage dh-golang bash-completion golang-any golang-github-spf13-cobra-dev golang-github-spf13-viper-dev + - apt-get install -y ./*.deb && rm -vf *.deb + - "sed -i 's/^Architecture:.*/Architecture: arm64/g' debian/control" + script: + - git checkout "${CI_COMMIT_BRANCH}" + - go run ./cmd/signaldctl doc -o man + - go run ./cmd/signaldctl completion bash > debian/package.bash-completion + - ls *.1 > debian/manpages + - gbp dch --ignore-branch --debian-tag="%(version)s" --git-author --new-version="$(git describe --abbrev=0 HEAD)+git$(date +%Y-%m-%d)r$(git rev-parse --short=8 HEAD).$(git rev-list $(git describe --abbrev=0 HEAD)..HEAD --count)" + - dpkg-buildpackage -us -uc -b + - mv ../*.deb . + needs: + - project: signald/libraries/golang-github-mdp-qrterminal + job: build + ref: master + artifacts: true + - project: signald/libraries/golang-github-jedib0t-go-pretty + job: build + ref: master + artifacts: true + variables: + SIGNALDCTL_PUBLIC_DOC_MODE: "on" + artifacts: + paths: + - "*.deb" + - "*.1" + expire_in: 1 month + + publish deb: image: registry.gitlab.com/signald/infrastructure/signald-builder-x86:d5e68709 stage: publish