.gitlab-ci.yml 1.73 KB
Newer Older
1
---
2
3
#
# SPDX-License-Identifier: GPL-3.0-or-later
4

5
6
7
8
9
# NOTE: most functionality (apart from building) is abstracted by this include
include:
  - project: 'archlinux/ci-scripts'
    ref: master
    file: '/prepare_archiso_vm.yml'
10

11
variables:
David Runge's avatar
David Runge committed
12
  BUILD_SCRIPT: ./.gitlab/ci/build_archiso.sh
13
  PACKAGE_LIST: dosfstools e2fsprogs erofs-utils jq libisoburn mtools openssl qemu-headless squashfs-tools zsync
14
  QEMU_BUILD_TIMEOUT: 2400
15
  QEMU_COPY_ARTIFACTS_TIMEOUT: 120
16
17
18
  QEMU_VM_MEMORY: 3072
  ARCHISO_COW_SPACE_SIZE: 2g

19
stages:
20
  - check
21
22
  - build

23
check:
24
  before_script:
25
26
27
28
29
    # NOTE: Install latest archlinux-keyring before upgrading system. In the
    # future this should not be needed anymore when we can guarantee a valid
    # keyring for longer:
    # https://gitlab.archlinux.org/archlinux/archlinux-keyring/-/issues/4
    - pacman -Sy --needed --noconfirm archlinux-keyring
30
31
    - pacman --noconfirm -Syu --needed make shellcheck
  script:
32
    - make check
33
  stage: check
34
  interruptible: true
35

36
build_short:
37
  extends: .build
38
39
  parallel:
    matrix:
40
41
      - BUILD_SCRIPT_ARGS: baseline bootstrap
      - BUILD_SCRIPT_ARGS: releng bootstrap
42
  only:
43
44
45
    refs:
      - master
      - merge_requests
46
47
48
49
50
51
    changes:
      - archiso/*
      - configs/**/*
      - Makefile
      - .gitlab-ci.yml
      - .gitlab/ci/*
52
  interruptible: true
53

54
build_long:
55
  extends: .build
56
57
  parallel:
    matrix:
58
      - BUILD_SCRIPT_ARGS: baseline iso
59
      - BUILD_SCRIPT_ARGS: baseline netboot
60
61
      - BUILD_SCRIPT_ARGS: releng iso
      - BUILD_SCRIPT_ARGS: releng netboot
62
63
  tags:
    - fast-single-thread
64
  only:
65
66
67
    refs:
      - master
      - merge_requests
68
69
70
71
72
73
    changes:
      - archiso/*
      - configs/**/*
      - Makefile
      - .gitlab-ci.yml
      - .gitlab/ci/*
74
  interruptible: true