Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 44fd2cac65b6ea9e71111de24045453fa9b16015 (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
---
#
# SPDX-License-Identifier: GPL-3.0-or-later

default:
  image: "archlinux:latest"

variables:
  BUILD_SCRIPT: ./.gitlab/ci/build-inside-vm.sh
  QEMU_BUILD_TIMEOUT: 2400
  QEMU_VM_MEMORY: 3072
  ARCHISO_COW_SPACE_SIZE: 2g

stages:
  - lint
  - build

shellcheck:
  stage: lint
  before_script:
    - pacman --noconfirm -Syu --needed make shellcheck
  script:
    - make lint

.build:
  variables:
    PACKAGE_LIST: dosfstools e2fsprogs erofs-utils jq libisoburn mtools openssl qemu-headless squashfs-tools zsync
  stage: build
  before_script:
    - pacman -Syu --needed --noconfirm qemu-headless
  script:
    - ./.gitlab/ci/build-host.sh
  after_script:
    - PROFILE=($BUILD_SCRIPT_ARGS) && cp -- "output/${PROFILE[0]}/metrics.txt" .
  artifacts:
    name: "output"
    paths:
      - "output/*/*"
    expire_in: 2d
    reports:
      metrics: metrics.txt

build_short:
  extends: .build
  parallel:
    matrix:
      # baseline does not support netboot with codesinging
      # https://gitlab.archlinux.org/archlinux/archiso/-/issues/132
      - BUILD_SCRIPT_ARGS: baseline bootstrap
      - BUILD_SCRIPT_ARGS: releng bootstrap

build_long:
  extends: .build
  tags:
    - fast-single-thread
  parallel:
    matrix:
      - BUILD_SCRIPT_ARGS: baseline iso
      - BUILD_SCRIPT_ARGS: releng iso
      - BUILD_SCRIPT_ARGS: releng netboot