mirror of
https://github.com/qemu/qemu.git
synced 2024-11-26 04:13:39 +08:00
45f7b7b9f3
The FreeBSD jobs currently hit the 1h time limit in the Cirrus-CI. We have to split the build targets here to make sure that the job finishes in time again. According to the Cirrus-CI docs and some tests that I did, it also seems like the total amount of CPUs that can be used for FreeBSD jobs is limited to 8, so each job now only gets 4 CPUs. That increases the compilation time of each job a little bit, but it still seems to be better to run two jobs with 4 CPUs each in parallel than to run two jobs with 8 CPUs sequentially. Message-Id: <20200831154405.229706-1-thuth@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
66 lines
2.2 KiB
YAML
66 lines
2.2 KiB
YAML
env:
|
|
CIRRUS_CLONE_DEPTH: 1
|
|
|
|
freebsd_1st_task:
|
|
freebsd_instance:
|
|
image_family: freebsd-12-1
|
|
cpu: 4
|
|
memory: 4G
|
|
install_script: ASSUME_ALWAYS_YES=yes pkg bootstrap -f ; pkg install -y
|
|
bash curl cyrus-sasl git glib gmake gnutls gsed
|
|
nettle perl5 pixman pkgconf png usbredir
|
|
script:
|
|
- mkdir build
|
|
- cd build
|
|
- ../configure --disable-user --target-list-exclude='alpha-softmmu
|
|
ppc64-softmmu ppc-softmmu riscv32-softmmu riscv64-softmmu s390x-softmmu
|
|
sparc64-softmmu sparc-softmmu x86_64-softmmu i386-softmmu'
|
|
--enable-werror || { cat config.log; exit 1; }
|
|
- gmake -j$(sysctl -n hw.ncpu)
|
|
- gmake -j$(sysctl -n hw.ncpu) check
|
|
|
|
freebsd_2nd_task:
|
|
freebsd_instance:
|
|
image_family: freebsd-12-1
|
|
cpu: 4
|
|
memory: 4G
|
|
install_script: ASSUME_ALWAYS_YES=yes pkg bootstrap -f ; pkg install -y
|
|
bash curl cyrus-sasl git glib gmake gnutls gtk3 gsed libepoxy mesa-libs
|
|
nettle perl5 pixman pkgconf png SDL2 usbredir
|
|
script:
|
|
- ./configure --enable-werror --target-list='alpha-softmmu ppc64-softmmu
|
|
ppc-softmmu riscv32-softmmu riscv64-softmmu s390x-softmmu
|
|
sparc64-softmmu sparc-softmmu x86_64-softmmu i386-softmmu
|
|
sparc-bsd-user sparc64-bsd-user x86_64-bsd-user i386-bsd-user'
|
|
|| { cat config.log; exit 1; }
|
|
- gmake -j$(sysctl -n hw.ncpu)
|
|
- gmake -j$(sysctl -n hw.ncpu) check
|
|
|
|
macos_task:
|
|
osx_instance:
|
|
image: catalina-base
|
|
install_script:
|
|
- brew install pkg-config python gnu-sed glib pixman make sdl2 bash
|
|
script:
|
|
- mkdir build
|
|
- cd build
|
|
- ../configure --python=/usr/local/bin/python3 --enable-werror
|
|
--extra-cflags='-Wno-error=deprecated-declarations'
|
|
|| { cat config.log; exit 1; }
|
|
- gmake -j$(sysctl -n hw.ncpu)
|
|
- gmake check
|
|
|
|
macos_xcode_task:
|
|
osx_instance:
|
|
# this is an alias for the latest Xcode
|
|
image: catalina-xcode
|
|
install_script:
|
|
- brew install pkg-config gnu-sed glib pixman make sdl2 bash
|
|
script:
|
|
- mkdir build
|
|
- cd build
|
|
- ../configure --extra-cflags='-Wno-error=deprecated-declarations'
|
|
--enable-werror --cc=clang || { cat config.log; exit 1; }
|
|
- gmake -j$(sysctl -n hw.ncpu)
|
|
- gmake check
|