xref: /freebsd-13.1/.cirrus.yml (revision aebf405e)
19c0fe7f6SEd Maste# $FreeBSD$
29c0fe7f6SEd Maste
3088dbb4bSEd Mastecompute_engine_instance:
487c0db9dSEd Maste  # Image list available via
587c0db9dSEd Maste  # gcloud compute images list --project freebsd-org-cloud-dev --no-standard-images
6088dbb4bSEd Maste  platform: freebsd
7088dbb4bSEd Maste  image_project: freebsd-org-cloud-dev
887c0db9dSEd Maste  image: freebsd-13-0-release-amd64
99c0fe7f6SEd Maste  cpu: 8
10d747e9d2SEd Maste  memory: 8G
11088dbb4bSEd Maste  disk: 40
129c0fe7f6SEd Maste
139c0fe7f6SEd Masteenv:
149c0fe7f6SEd Maste  CIRRUS_CLONE_DEPTH: 1
159c0fe7f6SEd Maste
169c0fe7f6SEd Mastetask:
173d7ec506SEd Maste  matrix:
183d7ec506SEd Maste  - name: World and kernel amd64 build and boot smoke test
193d7ec506SEd Maste    env:
203d7ec506SEd Maste      TARGET: amd64
213d7ec506SEd Maste      TARGET_ARCH: amd64
22*aebf405eSEd Maste      TOOLCHAIN_PKG: llvm13
233d7ec506SEd Maste  - name: World and kernel arm64 build and boot smoke test
243d7ec506SEd Maste    trigger_type: manual
253d7ec506SEd Maste    env:
263d7ec506SEd Maste      TARGET: arm64
273d7ec506SEd Maste      TARGET_ARCH: aarch64
28*aebf405eSEd Maste      TOOLCHAIN_PKG: llvm13
29*aebf405eSEd Maste  - name: World and kernel gcc9 amd64 build and boot smoke test
30*aebf405eSEd Maste    trigger_type: manual
31*aebf405eSEd Maste    env:
32*aebf405eSEd Maste      TARGET: amd64
33*aebf405eSEd Maste      TARGET_ARCH: amd64
34*aebf405eSEd Maste      TOOLCHAIN_PKG: amd64-gcc9
354d083e6dSEd Maste  timeout_in: 120m
369c0fe7f6SEd Maste  install_script:
37*aebf405eSEd Maste  - sh .cirrus-ci/pkg-install.sh qemu-nox11 ${TOOLCHAIN_PKG}
3831cbc4f9SEd Maste  setup_script:
3931cbc4f9SEd Maste  - uname -a
4031cbc4f9SEd Maste  - df -m
41105afb3fSEd Maste  - pkg --version
42db853af6SEd Maste  - pw useradd user
43db853af6SEd Maste  - mkdir -p /usr/obj/$(pwd -P)
44db853af6SEd Maste  - chown user:user /usr/obj/$(pwd -P)
459c0fe7f6SEd Maste  script:
46*aebf405eSEd Maste  - su user -c "make -j$(sysctl -n hw.ncpu) CROSS_TOOLCHAIN=${TOOLCHAIN_PKG} WITHOUT_TOOLCHAIN=yes buildworld buildkernel"
47088dbb4bSEd Maste  package_script:
48*aebf405eSEd Maste  - su user -c "make CROSS_TOOLCHAIN=${TOOLCHAIN_PKG} WITHOUT_TOOLCHAIN=yes PKG_FORMAT=tar packages"
49088dbb4bSEd Maste  test_script:
50088dbb4bSEd Maste  - sh tools/boot/ci-qemu-test.sh
5131cbc4f9SEd Maste  post_script:
5231cbc4f9SEd Maste  - df -m
5331cbc4f9SEd Maste  - du -m -s /usr/obj
54