2019-04-10 15:38:53 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2021-05-02 19:28:36 +00:00
|
|
|
compute_engine_instance:
|
2021-04-19 18:36:21 +00:00
|
|
|
# Image list available via
|
|
|
|
# gcloud compute images list --project freebsd-org-cloud-dev --no-standard-images
|
2021-05-02 19:28:36 +00:00
|
|
|
platform: freebsd
|
|
|
|
image_project: freebsd-org-cloud-dev
|
2023-04-19 13:01:15 +00:00
|
|
|
image: freebsd-13-2-release-amd64
|
2019-04-10 15:38:53 +00:00
|
|
|
cpu: 8
|
2021-08-31 00:50:34 +00:00
|
|
|
memory: 8G
|
2021-05-02 19:28:36 +00:00
|
|
|
disk: 40
|
2019-04-10 15:38:53 +00:00
|
|
|
|
|
|
|
task:
|
2021-06-23 19:24:36 +00:00
|
|
|
matrix:
|
|
|
|
- name: World and kernel amd64 build and boot smoke test
|
|
|
|
env:
|
|
|
|
TARGET: amd64
|
|
|
|
TARGET_ARCH: amd64
|
2023-02-13 14:28:35 +00:00
|
|
|
TOOLCHAIN_PKG: llvm15
|
2021-06-23 19:24:36 +00:00
|
|
|
- name: World and kernel arm64 build and boot smoke test
|
|
|
|
trigger_type: manual
|
|
|
|
env:
|
|
|
|
TARGET: arm64
|
|
|
|
TARGET_ARCH: aarch64
|
2023-02-13 14:28:35 +00:00
|
|
|
TOOLCHAIN_PKG: llvm15
|
2023-01-27 17:15:01 +00:00
|
|
|
- name: World and kernel gcc12 amd64 build and boot smoke test
|
2022-02-14 20:02:08 +00:00
|
|
|
trigger_type: manual
|
|
|
|
env:
|
|
|
|
TARGET: amd64
|
|
|
|
TARGET_ARCH: amd64
|
2023-01-27 17:15:01 +00:00
|
|
|
TOOLCHAIN_PKG: amd64-gcc12
|
2020-02-19 15:56:40 +00:00
|
|
|
timeout_in: 120m
|
2019-04-10 15:38:53 +00:00
|
|
|
install_script:
|
2023-04-19 15:58:46 +00:00
|
|
|
- sh .cirrus-ci/pkg-install.sh ${TOOLCHAIN_PKG} git-lite
|
2023-04-19 15:58:39 +00:00
|
|
|
|
2021-03-01 03:07:05 +00:00
|
|
|
setup_script:
|
2021-03-01 21:19:01 +00:00
|
|
|
- uname -a
|
2023-01-01 18:58:56 +00:00
|
|
|
- gpart show
|
2021-03-01 21:19:01 +00:00
|
|
|
- df -m
|
2021-07-26 17:27:16 +00:00
|
|
|
- pkg --version
|
2020-09-17 18:47:23 +00:00
|
|
|
- pw useradd user
|
|
|
|
- mkdir -p /usr/obj/$(pwd -P)
|
|
|
|
- chown user:user /usr/obj/$(pwd -P)
|
2023-04-19 15:58:39 +00:00
|
|
|
|
2019-04-10 15:38:53 +00:00
|
|
|
script:
|
2022-02-14 20:02:08 +00:00
|
|
|
- su user -c "make -j$(sysctl -n hw.ncpu) CROSS_TOOLCHAIN=${TOOLCHAIN_PKG} WITHOUT_TOOLCHAIN=yes buildworld buildkernel"
|
2023-04-19 15:58:39 +00:00
|
|
|
|
2021-07-26 15:49:15 +00:00
|
|
|
package_script:
|
2022-02-14 20:02:08 +00:00
|
|
|
- su user -c "make CROSS_TOOLCHAIN=${TOOLCHAIN_PKG} WITHOUT_TOOLCHAIN=yes PKG_FORMAT=tar packages"
|
2023-04-19 15:58:39 +00:00
|
|
|
|
2022-11-16 21:24:19 +00: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 15:58:39 +00:00
|
|
|
|
2021-07-26 15:49:15 +00:00
|
|
|
test_script:
|
2022-09-07 14:12:37 +00:00
|
|
|
- sh .cirrus-ci/pkg-install.sh qemu-nox11
|
2021-07-26 15:49:15 +00:00
|
|
|
- sh tools/boot/ci-qemu-test.sh
|
2023-04-19 15:58:39 +00:00
|
|
|
|
2023-04-19 15:58:46 +00: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
|
|
|
|
|
2021-03-01 21:19:01 +00:00
|
|
|
post_script:
|
|
|
|
- df -m
|
|
|
|
- du -m -s /usr/obj
|