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