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