xref: /freebsd/.cirrus.yml (revision 25ecdc7d52770caf1c9b44b5ec11f468f6b636f3)
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
13env:
14  CIRRUS_CLONE_DEPTH: 1
15
16task:
17  timeout_in: 120m
18  install_script:
19  - pkg install -y qemu uefi-edk2-qemu-x86_64 llvm12
20  setup_script:
21  - uname -a
22  - df -m
23  - pw useradd user
24  - mkdir -p /usr/obj/$(pwd -P)
25  - chown user:user /usr/obj/$(pwd -P)
26  script:
27  - su user -c "make -j$(sysctl -n hw.ncpu) CROSS_TOOLCHAIN=llvm12 WITHOUT_TOOLCHAIN=yes buildworld buildkernel"
28  package_script:
29  - su user -c "make CROSS_TOOLCHAIN=llvm12 WITHOUT_TOOLCHAIN=yes PKG_FORMAT=tar packages"
30  test_script:
31  - sh tools/boot/ci-qemu-test.sh
32  post_script:
33  - df -m
34  - du -m -s /usr/obj
35