xref: /freebsd/.cirrus.yml (revision bdcfd222ce6369e7aeaceb9a92ffdde84bdbf6cd)
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: 8G
11  disk: 40
12
13task:
14  matrix:
15  - name: World and kernel amd64 build and boot smoke test
16    env:
17      TARGET: amd64
18      TARGET_ARCH: amd64
19  - name: World and kernel arm64 build and boot smoke test
20    trigger_type: manual
21    env:
22      TARGET: arm64
23      TARGET_ARCH: aarch64
24  timeout_in: 120m
25  install_script:
26  - sh .cirrus-ci/pkg-install.sh qemu llvm13
27  setup_script:
28  - uname -a
29  - df -m
30  - pkg --version
31  - pw useradd user
32  - mkdir -p /usr/obj/$(pwd -P)
33  - chown user:user /usr/obj/$(pwd -P)
34  script:
35  - su user -c "make -j$(sysctl -n hw.ncpu) CROSS_TOOLCHAIN=llvm13 WITHOUT_TOOLCHAIN=yes buildworld buildkernel"
36  package_script:
37  - su user -c "make CROSS_TOOLCHAIN=llvm13 WITHOUT_TOOLCHAIN=yes PKG_FORMAT=tar packages"
38  test_script:
39  - sh tools/boot/ci-qemu-test.sh
40  post_script:
41  - df -m
42  - du -m -s /usr/obj
43