ddda63ba09
Remove qemu-headless since it is no longer needed to build the project and is also no longer provided by qemu-base.
72 lines
1.7 KiB
YAML
72 lines
1.7 KiB
YAML
---
|
|
#
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
stages:
|
|
- check
|
|
- build
|
|
|
|
check:
|
|
before_script:
|
|
# 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
|
|
- pacman --noconfirm -Syu --needed make shellcheck
|
|
script:
|
|
- make check
|
|
stage: check
|
|
interruptible: true
|
|
|
|
.build:
|
|
artifacts:
|
|
reports:
|
|
metrics: output/metrics.txt
|
|
before_script:
|
|
- pacman -Sy --needed --noconfirm archlinux-keyring
|
|
- pacman -Syu --needed --noconfirm arch-install-scripts bash dosfstools e2fsprogs erofs-utils gnupg grub jq libarchive libisoburn mtools openssl squashfs-tools zsync
|
|
script:
|
|
- ./.gitlab/ci/build_archiso.sh ${BUILD_SCRIPT_ARGS}
|
|
stage: build
|
|
tags:
|
|
- vm
|
|
|
|
build_short:
|
|
extends: .build
|
|
parallel:
|
|
matrix:
|
|
- BUILD_SCRIPT_ARGS: baseline bootstrap
|
|
- BUILD_SCRIPT_ARGS: releng bootstrap
|
|
only:
|
|
refs:
|
|
- master
|
|
- merge_requests
|
|
changes:
|
|
- archiso/*
|
|
- configs/**/*
|
|
- Makefile
|
|
- .gitlab-ci.yml
|
|
- .gitlab/ci/*
|
|
interruptible: true
|
|
|
|
build_long:
|
|
extends: .build
|
|
parallel:
|
|
matrix:
|
|
- BUILD_SCRIPT_ARGS: baseline iso
|
|
- BUILD_SCRIPT_ARGS: baseline netboot
|
|
- BUILD_SCRIPT_ARGS: releng iso
|
|
- BUILD_SCRIPT_ARGS: releng netboot
|
|
only:
|
|
refs:
|
|
- master
|
|
- merge_requests
|
|
changes:
|
|
- archiso/*
|
|
- configs/**/*
|
|
- Makefile
|
|
- .gitlab-ci.yml
|
|
- .gitlab/ci/*
|
|
interruptible: true
|