]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - .cirrus.yml
Cirrus-CI: add a manually triggered arm64 task
[FreeBSD/FreeBSD.git] / .cirrus.yml
1 # $FreeBSD$
2
3 compute_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-0-release-amd64
9   cpu: 8
10   memory: 8G
11   disk: 40
12
13 env:
14   CIRRUS_CLONE_DEPTH: 1
15
16 task:
17   matrix:
18   - name: World and kernel amd64 build and boot smoke test
19     env:
20       TARGET: amd64
21       TARGET_ARCH: amd64
22   - name: World and kernel arm64 build and boot smoke test
23     trigger_type: manual
24     env:
25       TARGET: arm64
26       TARGET_ARCH: aarch64
27   timeout_in: 120m
28   install_script:
29   - sh .cirrus-ci/pkg-install.sh qemu llvm11
30   setup_script:
31   - uname -a
32   - df -m
33   - pw useradd user
34   - mkdir -p /usr/obj/$(pwd -P)
35   - chown user:user /usr/obj/$(pwd -P)
36   script:
37   - su user -c "make -j$(sysctl -n hw.ncpu) CROSS_TOOLCHAIN=llvm11 WITHOUT_TOOLCHAIN=yes buildworld buildkernel"
38   package_script:
39   - su user -c "make CROSS_TOOLCHAIN=llvm11 WITHOUT_TOOLCHAIN=yes PKG_FORMAT=tar packages"
40   test_script:
41   - sh tools/boot/ci-qemu-test.sh
42   post_script:
43   - df -m
44   - du -m -s /usr/obj