qapi: Fix malformed "Since:" section tags (again)
[qemu/kevin.git] / .gitlab-ci.d / cirrus.yml
blob64f2e25afab58d1351dd033a2b5edb0598c95a22
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.
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.
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:master
17   needs: []
18   # 20 mins larger than "timeout_in" in cirrus/build.yml
19   # as there's often a 5-10 minute delay before Cirrus CI
20   # actually starts the task
21   timeout: 80m
22   script:
23     - source .gitlab-ci.d/cirrus/$NAME.vars
24     - sed -e "s|[@]CI_REPOSITORY_URL@|$CI_REPOSITORY_URL|g"
25           -e "s|[@]CI_COMMIT_REF_NAME@|$CI_COMMIT_REF_NAME|g"
26           -e "s|[@]CI_COMMIT_SHA@|$CI_COMMIT_SHA|g"
27           -e "s|[@]CIRRUS_VM_INSTANCE_TYPE@|$CIRRUS_VM_INSTANCE_TYPE|g"
28           -e "s|[@]CIRRUS_VM_IMAGE_SELECTOR@|$CIRRUS_VM_IMAGE_SELECTOR|g"
29           -e "s|[@]CIRRUS_VM_IMAGE_NAME@|$CIRRUS_VM_IMAGE_NAME|g"
30           -e "s|[@]CIRRUS_VM_CPUS@|$CIRRUS_VM_CPUS|g"
31           -e "s|[@]CIRRUS_VM_RAM@|$CIRRUS_VM_RAM|g"
32           -e "s|[@]UPDATE_COMMAND@|$UPDATE_COMMAND|g"
33           -e "s|[@]INSTALL_COMMAND@|$INSTALL_COMMAND|g"
34           -e "s|[@]PATH@|$PATH_EXTRA${PATH_EXTRA:+:}\$PATH|g"
35           -e "s|[@]PKG_CONFIG_PATH@|$PKG_CONFIG_PATH|g"
36           -e "s|[@]PKGS@|$PKGS|g"
37           -e "s|[@]MAKE@|$MAKE|g"
38           -e "s|[@]PYTHON@|$PYTHON|g"
39           -e "s|[@]PIP3@|$PIP3|g"
40           -e "s|[@]PYPI_PKGS@|$PYPI_PKGS|g"
41           -e "s|[@]CONFIGURE_ARGS@|$CONFIGURE_ARGS|g"
42           -e "s|[@]TEST_TARGETS@|$TEST_TARGETS|g"
43       <.gitlab-ci.d/cirrus/build.yml >.gitlab-ci.d/cirrus/$NAME.yml
44     - cat .gitlab-ci.d/cirrus/$NAME.yml
45     - cirrus-run -v --show-build-log always .gitlab-ci.d/cirrus/$NAME.yml
46   variables:
47     QEMU_JOB_CIRRUS: 1
49 x64-freebsd-13-build:
50   extends: .cirrus_build_job
51   variables:
52     NAME: freebsd-13
53     CIRRUS_VM_INSTANCE_TYPE: freebsd_instance
54     CIRRUS_VM_IMAGE_SELECTOR: image_family
55     CIRRUS_VM_IMAGE_NAME: freebsd-13-2
56     CIRRUS_VM_CPUS: 8
57     CIRRUS_VM_RAM: 8G
58     UPDATE_COMMAND: pkg update; pkg upgrade -y
59     INSTALL_COMMAND: pkg install -y
60     TEST_TARGETS: check
62 aarch64-macos-13-base-build:
63   extends: .cirrus_build_job
64   variables:
65     NAME: macos-13
66     CIRRUS_VM_INSTANCE_TYPE: macos_instance
67     CIRRUS_VM_IMAGE_SELECTOR: image
68     CIRRUS_VM_IMAGE_NAME: ghcr.io/cirruslabs/macos-ventura-base:latest
69     CIRRUS_VM_CPUS: 12
70     CIRRUS_VM_RAM: 24G
71     UPDATE_COMMAND: brew update
72     INSTALL_COMMAND: brew install
73     PATH_EXTRA: /opt/homebrew/ccache/libexec:/opt/homebrew/gettext/bin
74     PKG_CONFIG_PATH: /opt/homebrew/curl/lib/pkgconfig:/opt/homebrew/ncurses/lib/pkgconfig:/opt/homebrew/readline/lib/pkgconfig
75     TEST_TARGETS: check-unit check-block check-qapi-schema check-softfloat check-qtest-x86_64
77 aarch64-macos-14-base-build:
78   extends: .cirrus_build_job
79   variables:
80     NAME: macos-14
81     CIRRUS_VM_INSTANCE_TYPE: macos_instance
82     CIRRUS_VM_IMAGE_SELECTOR: image
83     CIRRUS_VM_IMAGE_NAME: ghcr.io/cirruslabs/macos-sonoma-base:latest
84     CIRRUS_VM_CPUS: 12
85     CIRRUS_VM_RAM: 24G
86     UPDATE_COMMAND: brew update
87     INSTALL_COMMAND: brew install
88     PATH_EXTRA: /opt/homebrew/ccache/libexec:/opt/homebrew/gettext/bin
89     PKG_CONFIG_PATH: /opt/homebrew/curl/lib/pkgconfig:/opt/homebrew/ncurses/lib/pkgconfig:/opt/homebrew/readline/lib/pkgconfig
90     TEST_TARGETS: check-unit check-block check-qapi-schema check-softfloat check-qtest-x86_64
91     QEMU_JOB_OPTIONAL: 1
94 # The following jobs run VM-based tests via KVM on a Linux-based Cirrus-CI job
95 .cirrus_kvm_job:
96   extends: .base_job_template
97   stage: build
98   image: registry.gitlab.com/libvirt/libvirt-ci/cirrus-run:master
99   needs: []
100   timeout: 80m
101   script:
102     - sed -e "s|[@]CI_REPOSITORY_URL@|$CI_REPOSITORY_URL|g"
103           -e "s|[@]CI_COMMIT_REF_NAME@|$CI_COMMIT_REF_NAME|g"
104           -e "s|[@]CI_COMMIT_SHA@|$CI_COMMIT_SHA|g"
105           -e "s|[@]NAME@|$NAME|g"
106           -e "s|[@]CONFIGURE_ARGS@|$CONFIGURE_ARGS|g"
107           -e "s|[@]TEST_TARGETS@|$TEST_TARGETS|g"
108       <.gitlab-ci.d/cirrus/kvm-build.yml >.gitlab-ci.d/cirrus/$NAME.yml
109     - cat .gitlab-ci.d/cirrus/$NAME.yml
110     - cirrus-run -v --show-build-log always .gitlab-ci.d/cirrus/$NAME.yml
111   variables:
112     QEMU_JOB_CIRRUS: 1
113     QEMU_JOB_OPTIONAL: 1
116 x86-netbsd:
117   extends: .cirrus_kvm_job
118   variables:
119     NAME: netbsd
120     CONFIGURE_ARGS: --target-list=x86_64-softmmu,ppc64-softmmu,aarch64-softmmu
121     TEST_TARGETS: check
123 x86-openbsd:
124   extends: .cirrus_kvm_job
125   variables:
126     NAME: openbsd
127     CONFIGURE_ARGS: --target-list=i386-softmmu,riscv64-softmmu,mips64-softmmu
128     TEST_TARGETS: check