2020-06-25 23:01:54 +02:00
|
|
|
---
|
2020-05-30 00:01:28 +02:00
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
2020-06-25 23:01:54 +02:00
|
|
|
|
|
|
|
default:
|
2021-01-31 16:28:57 +01:00
|
|
|
image: "archlinux:latest"
|
|
|
|
|
2021-05-12 20:37:14 +02:00
|
|
|
variables:
|
|
|
|
BUILD_SCRIPT: ./.gitlab/ci/build-inside-vm.sh
|
|
|
|
QEMU_BUILD_TIMEOUT: 2400
|
|
|
|
QEMU_VM_MEMORY: 3072
|
|
|
|
ARCHISO_COW_SPACE_SIZE: 2g
|
|
|
|
|
2021-01-31 16:28:57 +01:00
|
|
|
stages:
|
|
|
|
- lint
|
|
|
|
- build
|
|
|
|
|
|
|
|
shellcheck:
|
|
|
|
stage: lint
|
2020-06-25 23:01:54 +02:00
|
|
|
before_script:
|
2021-01-31 16:28:57 +01:00
|
|
|
- pacman --noconfirm -Syu --needed make shellcheck
|
|
|
|
script:
|
|
|
|
- make lint
|
2020-06-25 23:01:54 +02:00
|
|
|
|
2021-01-31 16:28:57 +01:00
|
|
|
.build:
|
2021-05-12 20:37:14 +02:00
|
|
|
variables:
|
|
|
|
PACKAGE_LIST: dosfstools e2fsprogs erofs-utils jq libisoburn mtools openssl qemu-headless squashfs-tools zsync
|
2020-06-25 23:01:54 +02:00
|
|
|
stage: build
|
2021-01-31 16:28:57 +01:00
|
|
|
before_script:
|
2021-05-12 20:37:14 +02:00
|
|
|
- pacman -Syu --needed --noconfirm qemu-headless
|
2020-06-25 23:01:54 +02:00
|
|
|
script:
|
2021-01-31 16:28:57 +01:00
|
|
|
- ./.gitlab/ci/build-host.sh
|
|
|
|
after_script:
|
2021-05-12 20:37:14 +02:00
|
|
|
- PROFILE=($BUILD_SCRIPT_ARGS) && cp -- "output/${PROFILE[0]}/metrics.txt" .
|
2021-01-31 16:28:57 +01:00
|
|
|
artifacts:
|
|
|
|
name: "output"
|
|
|
|
paths:
|
|
|
|
- "output/*/*"
|
|
|
|
expire_in: 2d
|
|
|
|
reports:
|
|
|
|
metrics: metrics.txt
|
|
|
|
|
2021-05-10 22:57:20 +02:00
|
|
|
build_short:
|
2021-01-31 16:28:57 +01:00
|
|
|
extends: .build
|
2021-05-10 22:57:20 +02:00
|
|
|
parallel:
|
|
|
|
matrix:
|
|
|
|
# baseline does not support netboot with codesinging
|
|
|
|
# https://gitlab.archlinux.org/archlinux/archiso/-/issues/132
|
2021-05-12 20:37:14 +02:00
|
|
|
- BUILD_SCRIPT_ARGS: baseline bootstrap
|
|
|
|
- BUILD_SCRIPT_ARGS: releng bootstrap
|
2021-01-31 16:28:57 +01:00
|
|
|
|
2021-05-10 22:57:20 +02:00
|
|
|
build_long:
|
2021-01-31 16:28:57 +01:00
|
|
|
extends: .build
|
|
|
|
tags:
|
2021-05-10 22:57:20 +02:00
|
|
|
- fast-single-thread
|
|
|
|
parallel:
|
|
|
|
matrix:
|
2021-05-12 20:37:14 +02:00
|
|
|
- BUILD_SCRIPT_ARGS: baseline iso
|
|
|
|
- BUILD_SCRIPT_ARGS: releng iso
|
|
|
|
- BUILD_SCRIPT_ARGS: releng netboot
|