summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
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