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 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} git-lite 35 36 setup_script: 37 - uname -a 38 - gpart show 39 - df -m 40 - pkg --version 41 - pw useradd user 42 - mkdir -p /usr/obj/$(pwd -P) 43 - chown user:user /usr/obj/$(pwd -P) 44 45 script: 46 - su user -c "make -j$(sysctl -n hw.ncpu) CROSS_TOOLCHAIN=${TOOLCHAIN_PKG} WITHOUT_TOOLCHAIN=yes buildworld buildkernel" 47 48 package_script: 49 - su user -c "make CROSS_TOOLCHAIN=${TOOLCHAIN_PKG} WITHOUT_TOOLCHAIN=yes PKG_FORMAT=tar packages" 50 51 package_check_script: 52 - su user -c "/usr/libexec/flua tools/pkgbase/metalog_reader.lua -c /usr/obj/$(pwd -P)/${TARGET}.${TARGET_ARCH}/worldstage/METALOG" 53 54 test_script: 55 - sh .cirrus-ci/pkg-install.sh qemu-nox11 56 - sh tools/boot/ci-qemu-test.sh 57 58 make_sysent_script: 59 # Check that make sysent results were committed if required 60 - make sysent 61 - if ! git diff --exit-code; then printf "\n>>> Generated sysent files not updated, run make sysent <<<\n"; false; fi 62 63 include_ldirs_script: 64 # Check that includes/Makefile refers to existing directories 65 - if ! make -C include/ check-ldirs; then printf "\n>>> include/Makefile lists nonexistant directories <<<\n"; false; fi 66 67 makeman_script: 68 # Check that the committed src.conf.5 matches the one generated by 69 # tools/build/options/makeman (modulo the date which always updates) 70 # XXX: This script is slow so keep it last 71 - (make makeman 2> /tmp/makeman.out); cat /tmp/makeman.out 72 - 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 73 - if grep -q "no description found" /tmp/makeman.out; then printf "\n>>> Missing description files <<<\n"; false; fi 74 75 post_script: 76 - df -m 77 - du -m -s /usr/obj 78