freebsd-skq/.cirrus.yml
Fedor Korotkov fcb4797c90 Cirrus-CI: Use the default Git history depth
Which is `50`.  I saw a few errors like
`Failed to force reset to SHA: object not found!` which seems is
happening because the SHA is not available because there were two
commits pushed almost simultaneously and the second from the top fails
with this error because the SHA is not in the history.

Pull Request:	https://github.com/freebsd/freebsd-src/pull/454
2021-01-29 09:29:30 -05:00

25 lines
701 B
YAML

# $FreeBSD$
freebsd_instance:
# image: freebsd-12-1-stable-amd64
# We need a newer image to install llvm11
image_family: freebsd-12-1-snap
cpu: 8
memory: 24G
task:
only_if: $CIRRUS_BRANCH != 'svn_head'
timeout_in: 120m
install_script:
- pkg install -y qemu42 uefi-edk2-qemu-x86_64 llvm11
setup_user_script:
- pw useradd user
- mkdir -p /usr/obj/$(pwd -P)
- chown user:user /usr/obj/$(pwd -P)
script:
- su user -c "make -j$(sysctl -n hw.ncpu) CROSS_TOOLCHAIN=llvm11 WITHOUT_TOOLCHAIN=yes buildworld buildkernel"
package_script:
- su user -c "make CROSS_TOOLCHAIN=llvm11 WITHOUT_TOOLCHAIN=yes PKG_FORMAT=tar packages"
test_script:
- sh tools/boot/ci-qemu-test.sh