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-2-release-amd64 9 cpu: 8 10 memory: 8G 11 disk: 40 12 13env: 14 PKG_FORMAT: tar 15 16task: 17 matrix: 18 - name: World and kernel amd64 build and boot smoke test 19 env: 20 TARGET: amd64 21 TARGET_ARCH: amd64 22 TOOLCHAIN_PKG: llvm15 23 - name: World and kernel arm64 build and boot smoke test 24 trigger_type: manual 25 env: 26 TARGET: arm64 27 TARGET_ARCH: aarch64 28 TOOLCHAIN_PKG: llvm15 29 - name: World and kernel gcc12 amd64 build and boot smoke test 30 trigger_type: manual 31 env: 32 TARGET: amd64 33 TARGET_ARCH: amd64 34 TOOLCHAIN_PKG: amd64-gcc12 35 timeout_in: 120m 36 install_script: 37 - sh .cirrus-ci/pkg-install.sh ${TOOLCHAIN_PKG} git-lite 38 39 setup_script: 40 - uname -a 41 - gpart show 42 - df -m 43 - pkg --version 44 - pw useradd user 45 - mkdir -p /usr/obj/$(pwd -P) 46 - chown user:user /usr/obj/$(pwd -P) 47 48 script: 49 - su user -c "make -j$(sysctl -n hw.ncpu) CROSS_TOOLCHAIN=${TOOLCHAIN_PKG} WITHOUT_TOOLCHAIN=yes buildworld buildkernel" 50 51 package_script: 52 - su user -c "make CROSS_TOOLCHAIN=${TOOLCHAIN_PKG} WITHOUT_TOOLCHAIN=yes packages" 53 54 package_check_script: 55 - su user -c "/usr/libexec/flua tools/pkgbase/metalog_reader.lua -c /usr/obj/$(pwd -P)/${TARGET}.${TARGET_ARCH}/worldstage/METALOG" 56 57 test_script: 58 - sh .cirrus-ci/pkg-install.sh qemu-nox11 59 - sh tools/boot/ci-qemu-test.sh 60 61 make_sysent_script: 62 # Check that make sysent results were committed if required 63 - make sysent 64 - if ! git diff --exit-code; then printf "\n>>> Generated sysent files not updated, run make sysent <<<\n"; false; fi 65 66 include_ldirs_script: 67 # Check that includes/Makefile refers to existing directories 68 - if ! make -C include/ check-ldirs; then printf "\n>>> include/Makefile lists nonexistant directories <<<\n"; false; fi 69 70 makeman_script: 71 # Check that the committed src.conf.5 matches the one generated by 72 # tools/build/options/makeman (modulo the date which always updates) 73 # XXX: This script is slow so keep it last 74 - (make makeman 2> /tmp/makeman.out); cat /tmp/makeman.out 75 - if ! git diff --exit-code --ignore-matching-lines "^.Dd" share/man/man5/src.conf.5; then printf "\n>>> src.conf.5 was not updated as required <<<\n"; false; fi 76 - if grep -q "no description found" /tmp/makeman.out; then printf "\n>>> Missing description files <<<\n"; false; fi 77 78 post_script: 79 - df -m 80 - du -m -s /usr/obj 81