xref: /freebsd/.cirrus.yml (revision 1603881667360c015f6685131f2f25474fa67a72)
1# $FreeBSD$
2
3compute_engine_instance:
4  # Image list available via
5  # gcloud compute images list --project freebsd-org-cloud-dev --no-standard-images
6  platform: freebsd
7  image_project: freebsd-org-cloud-dev
8  image: freebsd-13-0-release-amd64
9  cpu: 8
10  memory: 24G
11  disk: 40
12
13task:
14  name: World and kernel amd64 build and boot smoke test
15  timeout_in: 120m
16  install_script:
17  - sh .cirrus-ci/pkg-install.sh qemu uefi-edk2-qemu-x86_64 llvm12
18  setup_script:
19  - uname -a
20  - df -m
21  - pw useradd user
22  - mkdir -p /usr/obj/$(pwd -P)
23  - chown user:user /usr/obj/$(pwd -P)
24  script:
25  - su user -c "make -j$(sysctl -n hw.ncpu) CROSS_TOOLCHAIN=llvm12 WITHOUT_TOOLCHAIN=yes buildworld buildkernel"
26  package_script:
27  - su user -c "make CROSS_TOOLCHAIN=llvm12 WITHOUT_TOOLCHAIN=yes PKG_FORMAT=tar packages"
28  test_script:
29  - sh tools/boot/ci-qemu-test.sh
30  post_script:
31  - df -m
32  - du -m -s /usr/obj
33