summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorohfp <1813007-ohfp@users.noreply.gitlab.com>2021-02-02 18:47:24 +0100
committerohfp <1813007-ohfp@users.noreply.gitlab.com>2021-02-02 18:47:24 +0100
commit5c3e50d985384bf713f140933cb1177b8ece04fa (patch)
tree70ef61b8a924a0330d6da34d01f632cfe7a93002 /.gitlab-ci.yml
downloadlibrewolf-debian-5c3e50d985384bf713f140933cb1177b8ece04fa.tar.gz
librewolf-debian-5c3e50d985384bf713f140933cb1177b8ece04fa.tar.bz2
librewolf-debian-5c3e50d985384bf713f140933cb1177b8ece04fa.zip
first draft of debian build CI, credits to @bgstack15
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml75
1 files changed, 75 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..4b7ab6b
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,75 @@
+stages:
+ - prepare
+ - build
+
+variables:
+ GIT_SUBMODULE_STRATEGY: recursive
+# variables:
+ # pkgver: $PKGVER
+ # pkgrel: $PKGREL
+ # AARCH64: $AARCH64
+ # X86_64: $X86_64
+ # GLOBAL_MENUBAR: $GLOBAL_MENUBAR
+
+.carch_aarch64: &carch_aarch64
+ variables:
+ CARCH: 'aarch64'
+
+.carch_x86_64: &carch_x86_64
+ variables:
+ CARCH: 'x86_64'
+
+.debian_prepare_config: &debian_prepare_config
+ stage: build
+ script:
+ - ./scripts/prep-librewolf-dpkg.sh
+ artifacts:
+ expire_in: 1d
+ name: "librewolf-debian-prepared"
+ paths:
+ - "prepared/librewolf*.{dsc,xz}"
+
+.debian_build_config: &debian_build_config
+ stage: build
+ script:
+ - ./scripts/build-librewolf-dpkg.conf
+ artifacts:
+ name: "librewolf-${pkgver}-${pkgrel}_${CARCH}"
+ paths:
+ - "out/librewolf-${pkgver}-${pkgrel}*.deb"
+
+build_debian_x86_64:
+ image: debian:sid
+ tags: [docker linux]
+ <<: *carch_x86_64
+ <<: *debian_build_config
+ only:
+ variables:
+ - $X86_64
+
+build_debian_aarch64:
+ image: arm64v8/ubuntu:16.04
+ tags: [aarch64b]
+ <<: *carch_aarch64
+ <<: *debian_build_config
+ only:
+ variables:
+ - $AARCH64
+
+prepare_debian_x86_64:
+ image: debian:sid
+ tags: [docker linux]
+ <<: *carch_x86_64
+ <<: *debian_prepare_config
+ only:
+ variables:
+ - $X86_64
+
+prepare_debian_aarch64:
+ image: arm64v8/ubuntu:16.04
+ tags: [aarch64b]
+ <<: *carch_aarch64
+ <<: *debian_prepare_config
+ only:
+ variables:
+ - $AARCH64
bgstack15