archiso/.gitlab-ci.yml
David Runge 97b7aebab8
gitlab-ci: Also build a baseline netboot target
.gitlab-ci.yml:
With #132 being fixed, it is possible to properly build the baseline netboot target without failure.
2021-06-30 14:36:34 +02:00

59 lines
1.2 KiB
YAML

---
#
# 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:
- 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: baseline netboot
- BUILD_SCRIPT_ARGS: releng iso
- BUILD_SCRIPT_ARGS: releng netboot