Changeset View
Changeset View
Standalone View
Standalone View
.cirrus.yml
# $FreeBSD$ | # $FreeBSD$ | ||||
freebsd_instance: | compute_engine_instance: | ||||
# Image list available via | # Image list available via | ||||
# gcloud compute images list --project freebsd-org-cloud-dev --no-standard-images | # gcloud compute images list --project freebsd-org-cloud-dev --no-standard-images | ||||
platform: freebsd | |||||
image_project: freebsd-org-cloud-dev | |||||
image: freebsd-13-0-release-amd64 | image: freebsd-13-0-release-amd64 | ||||
cpu: 8 | cpu: 8 | ||||
memory: 24G | memory: 24G | ||||
disk: 40 | |||||
markj: Ah, I hadn't thought to add this. I had tried having a "make packages" target but it would… | |||||
Done Inline ActionsIt was a bit tricky to figure out the exact invocation required; it seems freebsd_instance is some syntactic sugar that doesn't allow disk to be set, but using compute_engine_instance does (except that platform and image_project need to be provided explicitly, rather than being provided implicitly via freebsd_instance). emaste: It was a bit tricky to figure out the exact invocation required; it seems `freebsd_instance` is… | |||||
env: | env: | ||||
CIRRUS_CLONE_DEPTH: 1 | CIRRUS_CLONE_DEPTH: 1 | ||||
task: | task: | ||||
timeout_in: 120m | timeout_in: 120m | ||||
install_script: | install_script: | ||||
- pkg install -y llvm11 | - pkg install -y qemu uefi-edk2-qemu-x86_64 llvm11 | ||||
setup_script: | setup_script: | ||||
- uname -a | - uname -a | ||||
- df -m | - df -m | ||||
- pw useradd user | - pw useradd user | ||||
- mkdir -p /usr/obj/$(pwd -P) | - mkdir -p /usr/obj/$(pwd -P) | ||||
- chown user:user /usr/obj/$(pwd -P) | - chown user:user /usr/obj/$(pwd -P) | ||||
script: | script: | ||||
- su user -c "make -j$(sysctl -n hw.ncpu) CROSS_TOOLCHAIN=llvm11 WITHOUT_TOOLCHAIN=yes buildworld buildkernel" | - su user -c "make -j$(sysctl -n hw.ncpu) CROSS_TOOLCHAIN=llvm11 WITHOUT_TOOLCHAIN=yes buildworld buildkernel" | ||||
package_script: | |||||
- su user -c "make CROSS_TOOLCHAIN=llvm11 WITHOUT_TOOLCHAIN=yes PKG_FORMAT=tar packages" | |||||
Not Done Inline ActionsThis needs to be llvm12 now too? markj: This needs to be llvm12 now too? | |||||
test_script: | |||||
- sh tools/boot/ci-qemu-test.sh | |||||
post_script: | post_script: | ||||
- df -m | - df -m | ||||
- du -m -s /usr/obj | - du -m -s /usr/obj |
Ah, I hadn't thought to add this. I had tried having a "make packages" target but it would always run out of disk space and I didn't realize I could bump it.