xref: /freebsd/.cirrus.yml (revision 994297b01b98816bea1abf45ae4bac1bc69ee7a0)
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      TOOLCHAIN_PKG: llvm13
20  - name: World and kernel arm64 build and boot smoke test
21    trigger_type: manual
22    env:
23      TARGET: arm64
24      TARGET_ARCH: aarch64
25      TOOLCHAIN_PKG: llvm13
26  - name: World and kernel gcc9 amd64 build and boot smoke test
27    trigger_type: manual
28    env:
29      TARGET: amd64
30      TARGET_ARCH: amd64
31      TOOLCHAIN_PKG: amd64-gcc9
32  timeout_in: 120m
33  install_script:
34  - sh .cirrus-ci/pkg-install.sh qemu-nox11 ${TOOLCHAIN_PKG}
35  setup_script:
36  - uname -a
37  - df -m
38  - pkg --version
39  - pw useradd user
40  - mkdir -p /usr/obj/$(pwd -P)
41  - chown user:user /usr/obj/$(pwd -P)
42  script:
43  - su user -c "make -j$(sysctl -n hw.ncpu) CROSS_TOOLCHAIN=${TOOLCHAIN_PKG} WITHOUT_TOOLCHAIN=yes buildworld buildkernel"
44  package_script:
45  - su user -c "make CROSS_TOOLCHAIN=${TOOLCHAIN_PKG} WITHOUT_TOOLCHAIN=yes PKG_FORMAT=tar packages"
46  test_script:
47  - sh tools/boot/ci-qemu-test.sh
48  post_script:
49  - df -m
50  - du -m -s /usr/obj
51