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