2021-07-09 17:29:32 +03:00
|
|
|
# Jobs that we delegate to Cirrus CI because they require an operating
|
|
|
|
# system other than Linux. These jobs will only run if the required
|
|
|
|
# setup has been performed on the GitLab account.
|
|
|
|
#
|
|
|
|
# The Cirrus CI configuration is generated by replacing target-specific
|
|
|
|
# variables in a generic template: some of these variables are provided
|
|
|
|
# when the GitLab CI job is defined, others are taken from a shell
|
|
|
|
# snippet generated using lcitool.
|
|
|
|
#
|
|
|
|
# Note that the $PATH environment variable has to be treated with
|
|
|
|
# special care, because we can't just override it at the GitLab CI job
|
|
|
|
# definition level or we risk breaking it completely.
|
|
|
|
.cirrus_build_job:
|
2022-05-27 18:35:59 +03:00
|
|
|
extends: .base_job_template
|
2021-07-09 17:29:32 +03:00
|
|
|
stage: build
|
2024-04-01 08:16:33 +03:00
|
|
|
image: registry.gitlab.com/libvirt/libvirt-ci/cirrus-run:latest
|
2021-07-09 17:29:32 +03:00
|
|
|
needs: []
|
2023-09-14 18:54:19 +03:00
|
|
|
# 20 mins larger than "timeout_in" in cirrus/build.yml
|
|
|
|
# as there's often a 5-10 minute delay before Cirrus CI
|
|
|
|
# actually starts the task
|
2021-11-16 19:33:09 +03:00
|
|
|
timeout: 80m
|
2021-07-09 17:29:32 +03:00
|
|
|
script:
|
|
|
|
- source .gitlab-ci.d/cirrus/$NAME.vars
|
|
|
|
- sed -e "s|[@]CI_REPOSITORY_URL@|$CI_REPOSITORY_URL|g"
|
|
|
|
-e "s|[@]CI_COMMIT_REF_NAME@|$CI_COMMIT_REF_NAME|g"
|
|
|
|
-e "s|[@]CI_COMMIT_SHA@|$CI_COMMIT_SHA|g"
|
|
|
|
-e "s|[@]CIRRUS_VM_INSTANCE_TYPE@|$CIRRUS_VM_INSTANCE_TYPE|g"
|
|
|
|
-e "s|[@]CIRRUS_VM_IMAGE_SELECTOR@|$CIRRUS_VM_IMAGE_SELECTOR|g"
|
|
|
|
-e "s|[@]CIRRUS_VM_IMAGE_NAME@|$CIRRUS_VM_IMAGE_NAME|g"
|
|
|
|
-e "s|[@]CIRRUS_VM_CPUS@|$CIRRUS_VM_CPUS|g"
|
|
|
|
-e "s|[@]CIRRUS_VM_RAM@|$CIRRUS_VM_RAM|g"
|
|
|
|
-e "s|[@]UPDATE_COMMAND@|$UPDATE_COMMAND|g"
|
|
|
|
-e "s|[@]INSTALL_COMMAND@|$INSTALL_COMMAND|g"
|
|
|
|
-e "s|[@]PATH@|$PATH_EXTRA${PATH_EXTRA:+:}\$PATH|g"
|
|
|
|
-e "s|[@]PKG_CONFIG_PATH@|$PKG_CONFIG_PATH|g"
|
|
|
|
-e "s|[@]PKGS@|$PKGS|g"
|
|
|
|
-e "s|[@]MAKE@|$MAKE|g"
|
|
|
|
-e "s|[@]PYTHON@|$PYTHON|g"
|
|
|
|
-e "s|[@]PIP3@|$PIP3|g"
|
|
|
|
-e "s|[@]PYPI_PKGS@|$PYPI_PKGS|g"
|
|
|
|
-e "s|[@]CONFIGURE_ARGS@|$CONFIGURE_ARGS|g"
|
2021-09-17 19:23:30 +03:00
|
|
|
-e "s|[@]TEST_TARGETS@|$TEST_TARGETS|g"
|
2021-07-09 17:29:32 +03:00
|
|
|
<.gitlab-ci.d/cirrus/build.yml >.gitlab-ci.d/cirrus/$NAME.yml
|
|
|
|
- cat .gitlab-ci.d/cirrus/$NAME.yml
|
|
|
|
- cirrus-run -v --show-build-log always .gitlab-ci.d/cirrus/$NAME.yml
|
2022-05-27 18:35:59 +03:00
|
|
|
variables:
|
|
|
|
QEMU_JOB_CIRRUS: 1
|
2021-07-09 17:29:32 +03:00
|
|
|
|
|
|
|
x64-freebsd-13-build:
|
|
|
|
extends: .cirrus_build_job
|
|
|
|
variables:
|
|
|
|
NAME: freebsd-13
|
|
|
|
CIRRUS_VM_INSTANCE_TYPE: freebsd_instance
|
|
|
|
CIRRUS_VM_IMAGE_SELECTOR: image_family
|
2024-03-04 17:44:56 +03:00
|
|
|
CIRRUS_VM_IMAGE_NAME: freebsd-13-3
|
2021-07-09 17:29:32 +03:00
|
|
|
CIRRUS_VM_CPUS: 8
|
|
|
|
CIRRUS_VM_RAM: 8G
|
2023-01-09 23:32:01 +03:00
|
|
|
UPDATE_COMMAND: pkg update; pkg upgrade -y
|
2021-07-09 17:29:32 +03:00
|
|
|
INSTALL_COMMAND: pkg install -y
|
2024-04-29 13:01:13 +03:00
|
|
|
CONFIGURE_ARGS: --target-list-exclude=arm-softmmu,i386-softmmu,microblaze-softmmu,mips64el-softmmu,mipsel-softmmu,mips-softmmu,ppc-softmmu,sh4eb-softmmu,xtensa-softmmu
|
2021-07-09 17:29:32 +03:00
|
|
|
TEST_TARGETS: check
|
|
|
|
|
2023-11-20 18:08:21 +03:00
|
|
|
aarch64-macos-13-base-build:
|
2021-07-09 17:29:32 +03:00
|
|
|
extends: .cirrus_build_job
|
|
|
|
variables:
|
2023-11-20 18:08:21 +03:00
|
|
|
NAME: macos-13
|
2022-11-16 20:50:23 +03:00
|
|
|
CIRRUS_VM_INSTANCE_TYPE: macos_instance
|
2021-07-09 17:29:32 +03:00
|
|
|
CIRRUS_VM_IMAGE_SELECTOR: image
|
2023-11-20 18:08:21 +03:00
|
|
|
CIRRUS_VM_IMAGE_NAME: ghcr.io/cirruslabs/macos-ventura-base:latest
|
2021-07-09 17:29:32 +03:00
|
|
|
CIRRUS_VM_CPUS: 12
|
|
|
|
CIRRUS_VM_RAM: 24G
|
|
|
|
UPDATE_COMMAND: brew update
|
|
|
|
INSTALL_COMMAND: brew install
|
2022-11-16 20:50:23 +03:00
|
|
|
PATH_EXTRA: /opt/homebrew/ccache/libexec:/opt/homebrew/gettext/bin
|
|
|
|
PKG_CONFIG_PATH: /opt/homebrew/curl/lib/pkgconfig:/opt/homebrew/ncurses/lib/pkgconfig:/opt/homebrew/readline/lib/pkgconfig
|
2024-04-29 13:01:13 +03:00
|
|
|
CONFIGURE_ARGS: --target-list-exclude=arm-softmmu,i386-softmmu,microblazeel-softmmu,mips64-softmmu,mipsel-softmmu,mips-softmmu,ppc-softmmu,sh4-softmmu,xtensaeb-softmmu
|
2021-07-09 17:29:32 +03:00
|
|
|
TEST_TARGETS: check-unit check-block check-qapi-schema check-softfloat check-qtest-x86_64
|
2021-12-09 13:31:24 +03:00
|
|
|
|
2023-11-09 19:05:03 +03:00
|
|
|
aarch64-macos-14-base-build:
|
|
|
|
extends: .cirrus_build_job
|
|
|
|
variables:
|
|
|
|
NAME: macos-14
|
|
|
|
CIRRUS_VM_INSTANCE_TYPE: macos_instance
|
|
|
|
CIRRUS_VM_IMAGE_SELECTOR: image
|
|
|
|
CIRRUS_VM_IMAGE_NAME: ghcr.io/cirruslabs/macos-sonoma-base:latest
|
|
|
|
CIRRUS_VM_CPUS: 12
|
|
|
|
CIRRUS_VM_RAM: 24G
|
|
|
|
UPDATE_COMMAND: brew update
|
|
|
|
INSTALL_COMMAND: brew install
|
|
|
|
PATH_EXTRA: /opt/homebrew/ccache/libexec:/opt/homebrew/gettext/bin
|
|
|
|
PKG_CONFIG_PATH: /opt/homebrew/curl/lib/pkgconfig:/opt/homebrew/ncurses/lib/pkgconfig:/opt/homebrew/readline/lib/pkgconfig
|
|
|
|
TEST_TARGETS: check-unit check-block check-qapi-schema check-softfloat check-qtest-x86_64
|
|
|
|
QEMU_JOB_OPTIONAL: 1
|