1# Jobs that we delegate to Cirrus CI because they require an operating 2# system other than Linux. These jobs will only run if the required 3# setup has been performed on the GitLab account. 4# 5# The Cirrus CI configuration is generated by replacing target-specific 6# variables in a generic template: some of these variables are provided 7# when the GitLab CI job is defined, others are taken from a shell 8# snippet generated using lcitool. 9# 10# Note that the $PATH environment variable has to be treated with 11# special care, because we can't just override it at the GitLab CI job 12# definition level or we risk breaking it completely. 13.cirrus_build_job: 14 extends: .base_job_template 15 stage: build 16 image: registry.gitlab.com/libvirt/libvirt-ci/cirrus-run:latest 17 needs: [] 18 allow_failure: 19 exit_codes: 3 20 # 20 mins larger than "timeout_in" in cirrus/build.yml 21 # as there's often a 5-10 minute delay before Cirrus CI 22 # actually starts the task 23 timeout: 80m 24 script: 25 - set -o allexport 26 - source .gitlab-ci.d/cirrus/$NAME.vars 27 - set +o allexport 28 - cirrus-vars <.gitlab-ci.d/cirrus/build.yml >.gitlab-ci.d/cirrus/$NAME.yml 29 - cat .gitlab-ci.d/cirrus/$NAME.yml 30 - cirrus-run -v --show-build-log always .gitlab-ci.d/cirrus/$NAME.yml 31 variables: 32 QEMU_JOB_CIRRUS: 1 33 34x64-freebsd-14-build: 35 extends: .cirrus_build_job 36 variables: 37 NAME: freebsd-14 38 CIRRUS_VM_INSTANCE_TYPE: freebsd_instance 39 CIRRUS_VM_IMAGE_SELECTOR: image_family 40 CIRRUS_VM_IMAGE_NAME: freebsd-14-2 41 CIRRUS_VM_CPUS: 8 42 CIRRUS_VM_RAM: 8G 43 UPDATE_COMMAND: pkg update; pkg upgrade -y 44 INSTALL_COMMAND: pkg install -y 45 CONFIGURE_ARGS: --target-list-exclude=arm-softmmu,i386-softmmu,microblaze-softmmu,mips64el-softmmu,mipsel-softmmu,mips-softmmu,ppc-softmmu,sh4eb-softmmu,xtensa-softmmu 46 TEST_TARGETS: check 47 48aarch64-macos-build: 49 extends: .cirrus_build_job 50 variables: 51 NAME: macos-14 52 CIRRUS_VM_INSTANCE_TYPE: macos_instance 53 CIRRUS_VM_IMAGE_SELECTOR: image 54 CIRRUS_VM_IMAGE_NAME: ghcr.io/cirruslabs/macos-runner:sonoma 55 UPDATE_COMMAND: brew update 56 INSTALL_COMMAND: brew install 57 PATH_EXTRA: /opt/homebrew/ccache/libexec:/opt/homebrew/gettext/bin 58 PKG_CONFIG_PATH: /opt/homebrew/curl/lib/pkgconfig:/opt/homebrew/ncurses/lib/pkgconfig:/opt/homebrew/readline/lib/pkgconfig 59 CONFIGURE_ARGS: --target-list-exclude=arm-softmmu,i386-softmmu,microblazeel-softmmu,mips64-softmmu,mipsel-softmmu,mips-softmmu,ppc-softmmu,sh4-softmmu,xtensaeb-softmmu 60 TEST_TARGETS: check-unit check-block check-qapi-schema check-softfloat check-qtest-x86_64 61