2019-04-10 17:38:53 +02:00
2021-05-02 21:28:36 +02:00
compute_engine_instance :
2021-04-19 20:36:21 +02:00
# Image list available via
# gcloud compute images list --project freebsd-org-cloud-dev --no-standard-images
2021-05-02 21:28:36 +02:00
platform : freebsd
image_project : freebsd-org-cloud-dev
2023-04-19 15:01:15 +02:00
image : freebsd-13-2-release-amd64
2019-04-10 17:38:53 +02:00
cpu : 8
2021-08-31 02:50:34 +02:00
memory : 8G
2021-05-02 21:28:36 +02:00
disk : 40
2019-04-10 17:38:53 +02:00
2023-05-01 18:45:36 +02:00
env :
PKG_FORMAT : tar
2019-04-10 17:38:53 +02:00
task :
2021-06-23 21:24:36 +02:00
matrix :
2024-02-29 23:00:39 +01:00
- name : amd64-llvm16 World and kernel build and boot smoke test
2023-06-23 01:20:34 +02:00
only_if : $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src'
trigger_type : manual
2021-06-23 21:24:36 +02:00
env :
TARGET : amd64
TARGET_ARCH : amd64
2024-02-29 23:00:39 +01:00
TOOLCHAIN : llvm16
2023-05-17 20:16:06 +02:00
TOOLCHAIN_PKG : ${TOOLCHAIN}-lite
2024-02-29 23:00:39 +01:00
- name : amd64-llvm17 World and kernel build and boot smoke test
2024-04-06 23:53:17 +02:00
only_if : $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src'
trigger_type : manual
2023-05-26 14:14:51 +02:00
env :
TARGET : amd64
TARGET_ARCH : amd64
2024-02-29 23:00:39 +01:00
TOOLCHAIN : llvm17
2023-05-26 14:14:51 +02:00
TOOLCHAIN_PKG : ${TOOLCHAIN}-lite
2024-03-01 14:21:54 +01:00
- name : amd64-llvm18 World and kernel build and boot smoke test
2024-04-06 23:53:17 +02:00
only_if : $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src' || $CIRRUS_BRANCH =~ 'pull/.*'
2024-03-01 14:21:54 +01:00
env :
TARGET : amd64
TARGET_ARCH : amd64
TOOLCHAIN : llvm18
TOOLCHAIN_PKG : ${TOOLCHAIN}-lite
2024-02-29 23:00:39 +01:00
- name : arm64-llvm16 World and kernel build and boot smoke test
2023-05-11 17:16:51 +02:00
only_if : $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src'
2021-06-23 21:24:36 +02:00
trigger_type : manual
env :
TARGET : arm64
TARGET_ARCH : aarch64
2024-02-29 23:00:39 +01:00
TOOLCHAIN : llvm16
2023-05-17 20:16:06 +02:00
TOOLCHAIN_PKG : ${TOOLCHAIN}
2024-02-29 23:00:39 +01:00
- name : arm64-llvm17 World and kernel build and boot smoke test
2023-05-26 14:14:51 +02:00
only_if : $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src'
trigger_type : manual
env :
TARGET : arm64
TARGET_ARCH : aarch64
2024-02-29 23:00:39 +01:00
TOOLCHAIN : llvm17
2023-05-26 14:14:51 +02:00
TOOLCHAIN_PKG : ${TOOLCHAIN}
2024-03-01 14:21:54 +01:00
- name : arm64-llvm18 World and kernel build and boot smoke test
only_if : $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src'
trigger_type : manual
env :
TARGET : arm64
TARGET_ARCH : aarch64
TOOLCHAIN : llvm18
TOOLCHAIN_PKG : ${TOOLCHAIN}
2023-05-26 19:58:04 +02:00
- name : amd64-gcc12 World and kernel build and boot smoke test (manual)
2023-05-11 17:16:51 +02:00
only_if : $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src'
2022-02-14 21:02:08 +01:00
trigger_type : manual
env :
TARGET : amd64
TARGET_ARCH : amd64
2023-05-17 20:16:06 +02:00
TOOLCHAIN : amd64-gcc12
TOOLCHAIN_PKG : ${TOOLCHAIN}
2023-08-17 01:34:24 +02:00
EXTRA_MAKE_FLAGS : -s
2023-12-07 23:32:08 +01:00
- name : amd64-gcc13 World and kernel build and boot smoke test (manual)
only_if : $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src'
trigger_type : manual
env :
TARGET : amd64
TARGET_ARCH : amd64
TOOLCHAIN : amd64-gcc13
TOOLCHAIN_PKG : ${TOOLCHAIN}
EXTRA_MAKE_FLAGS : -s
2023-06-09 17:19:42 +02:00
- name : aarch64-gcc12 World and kernel build and boot smoke test (manual)
only_if : $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src'
trigger_type : manual
env :
TARGET : arm64
TARGET_ARCH : aarch64
TOOLCHAIN : aarch64-gcc12
TOOLCHAIN_PKG : ${TOOLCHAIN}
2023-08-17 01:34:24 +02:00
EXTRA_MAKE_FLAGS : -s
2023-12-07 23:32:08 +01:00
- name : aarch64-gcc13 World and kernel build and boot smoke test (manual)
only_if : $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src'
trigger_type : manual
env :
TARGET : arm64
TARGET_ARCH : aarch64
TOOLCHAIN : aarch64-gcc13
TOOLCHAIN_PKG : ${TOOLCHAIN}
EXTRA_MAKE_FLAGS : -s
2023-05-26 19:58:04 +02:00
- name : amd64-gcc12 World and kernel build and boot smoke test (FreeBSD repo)
2023-10-06 14:13:26 +02:00
only_if : $CIRRUS_REPO_FULL_NAME == 'freebsd/freebsd-src' && $CIRRUS_BRANCH =~ 'pull/.*'
2023-05-09 20:26:47 +02:00
env :
TARGET : amd64
TARGET_ARCH : amd64
2023-05-17 20:16:06 +02:00
TOOLCHAIN : amd64-gcc12
TOOLCHAIN_PKG : ${TOOLCHAIN}
2023-08-17 01:34:24 +02:00
EXTRA_MAKE_FLAGS : -s
2020-02-19 16:56:40 +01:00
timeout_in : 120m
2019-04-10 17:38:53 +02:00
install_script :
2023-04-19 17:58:46 +02:00
- sh .cirrus-ci/pkg-install.sh ${TOOLCHAIN_PKG} git-lite
2023-04-19 17:58:39 +02:00
2021-03-01 04:07:05 +01:00
setup_script :
2021-03-01 22:19:01 +01:00
- uname -a
2023-01-01 19:58:56 +01:00
- gpart show
2021-03-01 22:19:01 +01:00
- df -m
2021-07-26 19:27:16 +02:00
- pkg --version
2023-12-05 20:03:35 +01:00
- pw useradd -n user -m
2020-09-17 20:47:23 +02:00
- mkdir -p /usr/obj/$(pwd -P)
- chown user:user /usr/obj/$(pwd -P)
2023-12-05 20:03:35 +01:00
- su user -c "git config --global --add safe.directory $(pwd -P)"
2023-04-19 17:58:39 +02:00
2023-06-09 15:53:08 +02:00
build_world_script :
2023-08-17 01:34:24 +02:00
- su user -c "make -j$(sysctl -n hw.ncpu) ${EXTRA_MAKE_FLAGS} CROSS_TOOLCHAIN=${TOOLCHAIN} WITHOUT_TOOLCHAIN=yes buildworld"
2023-06-09 15:53:08 +02:00
build_kernel_script :
- su user -c "make -j$(sysctl -n hw.ncpu) CROSS_TOOLCHAIN=${TOOLCHAIN} WITHOUT_TOOLCHAIN=yes buildkernel"
2023-04-19 17:58:39 +02:00
2021-07-26 17:49:15 +02:00
package_script :
2023-05-17 20:16:06 +02:00
- su user -c "make CROSS_TOOLCHAIN=${TOOLCHAIN} WITHOUT_TOOLCHAIN=yes packages"
2023-04-19 17:58:39 +02:00
2022-11-16 22:24:19 +01:00
package_check_script :
- su user -c "/usr/libexec/flua tools/pkgbase/metalog_reader.lua -c /usr/obj/$(pwd -P)/${TARGET}.${TARGET_ARCH}/worldstage/METALOG"
2023-04-19 17:58:39 +02:00
2021-07-26 17:49:15 +02:00
test_script :
2022-09-07 16:12:37 +02:00
- sh .cirrus-ci/pkg-install.sh qemu-nox11
2021-07-26 17:49:15 +02:00
- sh tools/boot/ci-qemu-test.sh
2023-04-19 17:58:39 +02:00
2023-04-19 17:58:46 +02:00
make_sysent_script :
# Check that make sysent results were committed if required
- make sysent
- if ! git diff --exit-code; then printf "\n>>> Generated sysent files not updated, run make sysent <<<\n"; false; fi
2023-04-19 17:58:54 +02:00
include_ldirs_script :
# Check that includes/Makefile refers to existing directories
- if ! make -C include/ check-ldirs; then printf "\n>>> include/Makefile lists nonexistant directories <<<\n"; false; fi
2023-04-20 23:38:10 +02:00
makeman_script :
# Check that the committed src.conf.5 matches the one generated by
# tools/build/options/makeman (modulo the date which always updates)
# XXX: This script is slow so keep it last
- (make makeman 2> /tmp/makeman.out); cat /tmp/makeman.out
- if ! git diff --exit-code --ignore-matching-lines "^.Dd" share/man/man5/src.conf.5; then printf "\n>>> src.conf.5 was not updated as required <<<\n"; false; fi
- if grep -q "no description found" /tmp/makeman.out; then printf "\n>>> Missing description files <<<\n"; false; fi
2021-03-01 22:19:01 +01:00
post_script :
- df -m
- du -m -s /usr/obj