master
yml 86 lines 3.1 KB
Raw
1 .cross_system_build_job:
2 extends: .base_meson_ccache_job_template
3 stage: build
4 image: $CI_REGISTRY_IMAGE/qemu/$IMAGE:$QEMU_CI_CONTAINER_TAG
5 timeout: 80m
6 script:
7 - !reference [.base_meson_ccache_job_template, script]
8 - mkdir build
9 - cd build
10 - section_start configure "Running configure"
11 - ../configure --enable-werror --disable-docs --enable-fdt=system
12 --disable-user $QEMU_CONFIGURE_OPTS $EXTRA_CONFIGURE_OPTS
13 --target-list-exclude="arm-softmmu
14 i386-softmmu microblaze-softmmu mips-softmmu mipsel-softmmu
15 mips64-softmmu ppc-softmmu riscv32-softmmu sh4-softmmu
16 sparc-softmmu xtensa-softmmu $CROSS_SKIP_TARGETS"
17 - section_end configure
18 - section_start build "Building QEMU"
19 - make -j"$JOBS" all check-build
20 - section_end build
21 - section_start test "Running tests"
22 - if test -n "$MAKE_CHECK_ARGS";
23 then
24 $MAKE -j"$JOBS" $MAKE_CHECK_ARGS ;
25 fi
26 - section_end test
27 - section_start installer "Building the installer"
28 - if grep -q "EXESUF=.exe" config-host.mak;
29 then make installer;
30 version="$(git describe --match v[0-9]* 2>/dev/null || git rev-parse --short HEAD)";
31 mv -v qemu-setup*.exe qemu-setup-${version}.exe;
32 fi
33 - section_end installer
34
35 # Job to cross-build specific accelerators.
36 #
37 # Set the $ACCEL variable to select the specific accelerator (default to
38 # KVM), and set extra options (such disabling other accelerators) via the
39 # $EXTRA_CONFIGURE_OPTS variable.
40 .cross_accel_build_job:
41 extends: .base_meson_ccache_job_template
42 stage: build
43 image: $CI_REGISTRY_IMAGE/qemu/$IMAGE:$QEMU_CI_CONTAINER_TAG
44 timeout: 60m
45 script:
46 - !reference [.base_meson_ccache_job_template, script]
47 - mkdir build
48 - cd build
49 - section_start configure "Running configure"
50 - ../configure --enable-werror --disable-docs $QEMU_CONFIGURE_OPTS
51 --disable-tools --enable-${ACCEL:-kvm} $EXTRA_CONFIGURE_OPTS
52 - section_end configure
53 - section_start build "Building QEMU"
54 - make -j"$JOBS" all check-build
55 - section_end build
56 - section_start test "Running tests"
57 - if test -n "$MAKE_CHECK_ARGS";
58 then
59 $MAKE -j"$JOBS" $MAKE_CHECK_ARGS ;
60 fi
61 - section_end test
62
63 .cross_user_build_job:
64 extends: .base_meson_ccache_job_template
65 stage: build
66 image: $CI_REGISTRY_IMAGE/qemu/$IMAGE:$QEMU_CI_CONTAINER_TAG
67 script:
68 - !reference [.base_meson_ccache_job_template, script]
69 - mkdir build
70 - cd build
71 - section_start configure "Running configure"
72 - ../configure --enable-werror --disable-docs $QEMU_CONFIGURE_OPTS
73 --disable-system --target-list-exclude="aarch64_be-linux-user
74 alpha-linux-user m68k-linux-user microblazeel-linux-user
75 or1k-linux-user ppc-linux-user sparc-linux-user
76 xtensa-linux-user $CROSS_SKIP_TARGETS"
77 - section_end configure
78 - section_start build "Building QEMU"
79 - make -j"$JOBS" all check-build
80 - section_end build
81 - section_start test "Running tests"
82 - if test -n "$MAKE_CHECK_ARGS";
83 then
84 $MAKE -j"$JOBS" $MAKE_CHECK_ARGS ;
85 fi
86 - section_end test