summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 982e52c48ef7b5a5506a2dd7cbe223f9a9b3b35a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
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