]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - .cirrus.yml
condvar: Fix a user-after-free in _cv_wait() when ktrace is enabled
[FreeBSD/FreeBSD.git] / .cirrus.yml
1
2 compute_engine_instance:
3   # Image list available via
4   # gcloud compute images list --project freebsd-org-cloud-dev --no-standard-images
5   platform: freebsd
6   image_project: freebsd-org-cloud-dev
7   image: freebsd-13-2-release-amd64
8   cpu: 8
9   memory: 8G
10   disk: 40
11
12 env:
13   CIRRUS_CLONE_DEPTH: 1
14   PKG_FORMAT: tar
15
16 task:
17   matrix:
18   - name: amd64-llvm15 World and kernel build and boot smoke test
19     only_if: $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src'
20     trigger_type: manual
21     env:
22       TARGET: amd64
23       TARGET_ARCH: amd64
24       TOOLCHAIN: llvm15
25       TOOLCHAIN_PKG: ${TOOLCHAIN}-lite
26   - name: amd64-llvm16 World and kernel build and boot smoke test
27     env:
28       TARGET: amd64
29       TARGET_ARCH: amd64
30       TOOLCHAIN: llvm16
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'
34     trigger_type: manual
35     env:
36       TARGET: arm64
37       TARGET_ARCH: aarch64
38       TOOLCHAIN: llvm15
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'
42     trigger_type: manual
43     env:
44       TARGET: arm64
45       TARGET_ARCH: aarch64
46       TOOLCHAIN: llvm16
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'
50     trigger_type: manual
51     env:
52       TARGET: amd64
53       TARGET_ARCH: amd64
54       TOOLCHAIN: amd64-gcc12
55       TOOLCHAIN_PKG: ${TOOLCHAIN}
56   - name: aarch64-gcc12 World and kernel build and boot smoke test (manual)
57     only_if: $CIRRUS_REPO_FULL_NAME != 'freebsd/freebsd-src'
58     trigger_type: manual
59     env:
60       TARGET: arm64
61       TARGET_ARCH: aarch64
62       TOOLCHAIN: aarch64-gcc12
63       TOOLCHAIN_PKG: ${TOOLCHAIN}
64   - name: amd64-gcc12 World and kernel build and boot smoke test (FreeBSD repo)
65     only_if: $CIRRUS_REPO_FULL_NAME == 'freebsd/freebsd-src'
66     env:
67       TARGET: amd64
68       TARGET_ARCH: amd64
69       TOOLCHAIN: amd64-gcc12
70       TOOLCHAIN_PKG: ${TOOLCHAIN}
71   timeout_in: 120m
72   install_script:
73   - sh .cirrus-ci/pkg-install.sh ${TOOLCHAIN_PKG}
74   setup_script:
75   - uname -a
76   - gpart show
77   - df -m
78   - pkg --version
79   - pw useradd user
80   - mkdir -p /usr/obj/$(pwd -P)
81   - chown user:user /usr/obj/$(pwd -P)
82   script:
83   - su user -c "make -j$(sysctl -n hw.ncpu) CROSS_TOOLCHAIN=${TOOLCHAIN} WITHOUT_TOOLCHAIN=yes buildworld buildkernel"
84   package_script:
85   - su user -c "make CROSS_TOOLCHAIN=${TOOLCHAIN} WITHOUT_TOOLCHAIN=yes packages"
86   package_check_script:
87   - su user -c "/usr/libexec/flua tools/pkgbase/metalog_reader.lua -c /usr/obj/$(pwd -P)/${TARGET}.${TARGET_ARCH}/worldstage/METALOG"
88   test_script:
89   - sh .cirrus-ci/pkg-install.sh qemu-nox11
90   - sh tools/boot/ci-qemu-test.sh
91   post_script:
92   - df -m
93   - du -m -s /usr/obj