2 compute_engine_instance:
3 # Image list available via
4 # gcloud compute images list --project freebsd-org-cloud-dev --no-standard-images
6 image_project: freebsd-org-cloud-dev
7 image: freebsd-13-2-release-amd64
17 - name: amd64-llvm15 World and kernel build and boot smoke test
18 only_if: $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src'
24 TOOLCHAIN_PKG: ${TOOLCHAIN}-lite
25 - name: amd64-llvm16 World and kernel build and boot smoke test
26 only_if: $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src' || $CIRRUS_BRANCH =~ 'pull/.*'
31 TOOLCHAIN_PKG: ${TOOLCHAIN}-lite
32 - name: arm64-llvm15 World and kernel build and boot smoke test
33 only_if: $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src'
39 TOOLCHAIN_PKG: ${TOOLCHAIN}
40 - name: arm64-llvm16 World and kernel build and boot smoke test
41 only_if: $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src'
47 TOOLCHAIN_PKG: ${TOOLCHAIN}
48 - name: amd64-gcc12 World and kernel build and boot smoke test (manual)
49 only_if: $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src'
54 TOOLCHAIN: amd64-gcc12
55 TOOLCHAIN_PKG: ${TOOLCHAIN}
57 - name: amd64-gcc13 World and kernel build and boot smoke test (manual)
58 only_if: $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src'
63 TOOLCHAIN: amd64-gcc13
64 TOOLCHAIN_PKG: ${TOOLCHAIN}
66 - name: aarch64-gcc12 World and kernel build and boot smoke test (manual)
67 only_if: $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src'
72 TOOLCHAIN: aarch64-gcc12
73 TOOLCHAIN_PKG: ${TOOLCHAIN}
75 - name: aarch64-gcc13 World and kernel build and boot smoke test (manual)
76 only_if: $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src'
81 TOOLCHAIN: aarch64-gcc13
82 TOOLCHAIN_PKG: ${TOOLCHAIN}
84 - name: amd64-gcc12 World and kernel build and boot smoke test (FreeBSD repo)
85 only_if: $CIRRUS_REPO_FULL_NAME == 'freebsd/freebsd-src' && $CIRRUS_BRANCH =~ 'pull/.*'
89 TOOLCHAIN: amd64-gcc12
90 TOOLCHAIN_PKG: ${TOOLCHAIN}
94 - sh .cirrus-ci/pkg-install.sh ${TOOLCHAIN_PKG} git-lite
101 - pw useradd -n user -m
102 - mkdir -p /usr/obj/$(pwd -P)
103 - chown user:user /usr/obj/$(pwd -P)
104 - su user -c "git config --global --add safe.directory $(pwd -P)"
107 - su user -c "make -j$(sysctl -n hw.ncpu) ${EXTRA_MAKE_FLAGS} CROSS_TOOLCHAIN=${TOOLCHAIN} WITHOUT_TOOLCHAIN=yes buildworld"
110 - su user -c "make -j$(sysctl -n hw.ncpu) CROSS_TOOLCHAIN=${TOOLCHAIN} WITHOUT_TOOLCHAIN=yes buildkernel"
113 - su user -c "make CROSS_TOOLCHAIN=${TOOLCHAIN} WITHOUT_TOOLCHAIN=yes packages"
115 package_check_script:
116 - su user -c "/usr/libexec/flua tools/pkgbase/metalog_reader.lua -c /usr/obj/$(pwd -P)/${TARGET}.${TARGET_ARCH}/worldstage/METALOG"
119 - sh .cirrus-ci/pkg-install.sh qemu-nox11
120 - sh tools/boot/ci-qemu-test.sh
123 # Check that make sysent results were committed if required
125 - if ! git diff --exit-code; then printf "\n>>> Generated sysent files not updated, run make sysent <<<\n"; false; fi
127 include_ldirs_script:
128 # Check that includes/Makefile refers to existing directories
129 - if ! make -C include/ check-ldirs; then printf "\n>>> include/Makefile lists nonexistant directories <<<\n"; false; fi
132 # Check that the committed src.conf.5 matches the one generated by
133 # tools/build/options/makeman (modulo the date which always updates)
134 # XXX: This script is slow so keep it last
135 - (make makeman 2> /tmp/makeman.out); cat /tmp/makeman.out
136 - 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
137 - if grep -q "no description found" /tmp/makeman.out; then printf "\n>>> Missing description files <<<\n"; false; fi