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
|
|
|
|
2021-01-31 16:28:57 +01:00
|
|
|
stages:
|
2021-06-30 23:25:48 +02:00
|
|
|
- check
|
2021-01-31 16:28:57 +01:00
|
|
|
- build
|
|
|
|
|
2021-06-30 23:25:48 +02:00
|
|
|
check:
|
2020-06-25 23:01:54 +02:00
|
|
|
before_script:
|
2022-01-29 17:13:24 +01:00
|
|
|
# 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
|
2021-01-31 16:28:57 +01:00
|
|
|
- pacman --noconfirm -Syu --needed make shellcheck
|
|
|
|
script:
|
2021-07-31 17:38:41 +02:00
|
|
|
- make check
|
2021-06-30 23:25:48 +02:00
|
|
|
stage: check
|
2022-01-30 21:47:36 +01:00
|
|
|
interruptible: true
|
2021-01-31 16:28:57 +01:00
|
|
|
|
2022-08-08 16:56:45 +02:00
|
|
|
.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 qemu-headless squashfs-tools zsync
|
|
|
|
script:
|
|
|
|
- ./.gitlab/ci/build_archiso.sh ${BUILD_SCRIPT_ARGS}
|
|
|
|
stage: build
|
|
|
|
tags:
|
|
|
|
- vm
|
|
|
|
|
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:
|
2021-05-12 20:37:14 +02:00
|
|
|
- BUILD_SCRIPT_ARGS: baseline bootstrap
|
|
|
|
- BUILD_SCRIPT_ARGS: releng bootstrap
|
2022-01-30 21:38:10 +01:00
|
|
|
only:
|
2022-01-31 17:28:36 +01:00
|
|
|
refs:
|
|
|
|
- master
|
|
|
|
- merge_requests
|
2022-01-30 21:38:10 +01:00
|
|
|
changes:
|
|
|
|
- archiso/*
|
|
|
|
- configs/**/*
|
|
|
|
- Makefile
|
|
|
|
- .gitlab-ci.yml
|
|
|
|
- .gitlab/ci/*
|
2022-01-30 21:47:36 +01:00
|
|
|
interruptible: true
|
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
|
2021-05-10 22:57:20 +02:00
|
|
|
parallel:
|
|
|
|
matrix:
|
2021-05-12 20:37:14 +02:00
|
|
|
- BUILD_SCRIPT_ARGS: baseline iso
|
2021-06-29 21:45:56 +02:00
|
|
|
- BUILD_SCRIPT_ARGS: baseline netboot
|
2021-05-12 20:37:14 +02:00
|
|
|
- BUILD_SCRIPT_ARGS: releng iso
|
|
|
|
- BUILD_SCRIPT_ARGS: releng netboot
|
2022-01-30 21:38:10 +01:00
|
|
|
only:
|
2022-01-31 17:28:36 +01:00
|
|
|
refs:
|
|
|
|
- master
|
|
|
|
- merge_requests
|
2022-01-30 21:38:10 +01:00
|
|
|
changes:
|
|
|
|
- archiso/*
|
|
|
|
- configs/**/*
|
|
|
|
- Makefile
|
|
|
|
- .gitlab-ci.yml
|
|
|
|
- .gitlab/ci/*
|
2022-01-30 21:47:36 +01:00
|
|
|
interruptible: true
|