]> git.proxmox.com Git - mirror_qemu.git/blame - .gitlab-ci.d/crossbuild-template.yml
Merge remote-tracking branch 'remotes/vsementsov/tags/pull-nbd-2022-02-09-v2' into...
[mirror_qemu.git] / .gitlab-ci.d / crossbuild-template.yml
CommitLineData
ecac85fe
PMD
1.cross_system_build_job:
2 stage: build
3 image: $CI_REGISTRY_IMAGE/qemu/$IMAGE:latest
4 timeout: 80m
5 script:
6 - mkdir build
7 - cd build
8 - PKG_CONFIG_PATH=$PKG_CONFIG_PATH
9 ../configure --enable-werror --disable-docs $QEMU_CONFIGURE_OPTS
10 --disable-user --target-list-exclude="arm-softmmu cris-softmmu
11 i386-softmmu microblaze-softmmu mips-softmmu mipsel-softmmu
a6235491 12 mips64-softmmu ppc-softmmu riscv32-softmmu sh4-softmmu
a1f0f368 13 sparc-softmmu xtensa-softmmu $CROSS_SKIP_TARGETS"
ecac85fe 14 - make -j$(expr $(nproc) + 1) all check-build $MAKE_CHECK_ARGS
8619b5dd
GH
15 - if grep -q "EXESUF=.exe" config-host.mak;
16 then make installer;
6340af7a 17 version="$(git describe --match v[0-9]* 2>/dev/null || git rev-parse --short HEAD)";
8619b5dd
GH
18 mv -v qemu-setup*.exe qemu-setup-${version}.exe;
19 fi
ecac85fe
PMD
20
21# Job to cross-build specific accelerators.
22#
23# Set the $ACCEL variable to select the specific accelerator (default to
24# KVM), and set extra options (such disabling other accelerators) via the
25# $EXTRA_CONFIGURE_OPTS variable.
26.cross_accel_build_job:
27 stage: build
28 image: $CI_REGISTRY_IMAGE/qemu/$IMAGE:latest
29 timeout: 30m
30 script:
31 - mkdir build
32 - cd build
33 - PKG_CONFIG_PATH=$PKG_CONFIG_PATH
34 ../configure --enable-werror --disable-docs $QEMU_CONFIGURE_OPTS
35 --disable-tools --enable-${ACCEL:-kvm} $EXTRA_CONFIGURE_OPTS
36 - make -j$(expr $(nproc) + 1) all check-build $MAKE_CHECK_ARGS
37
38.cross_user_build_job:
39 stage: build
40 image: $CI_REGISTRY_IMAGE/qemu/$IMAGE:latest
41 script:
42 - mkdir build
43 - cd build
44 - PKG_CONFIG_PATH=$PKG_CONFIG_PATH
45 ../configure --enable-werror --disable-docs $QEMU_CONFIGURE_OPTS
46 --disable-system
47 - make -j$(expr $(nproc) + 1) all check-build $MAKE_CHECK_ARGS