Skip to content

Commit

Permalink
ci: build & store windows installer
Browse files Browse the repository at this point in the history
Build windows installer for qemu in gitlab CI,
store the result as artifact.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Willian Rampazzo <willianr@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20210623091137.1156959-2-kraxel@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
  • Loading branch information
kraxel authored and huth committed Jul 19, 2021
1 parent fd79f89 commit 8619b5d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitlab-ci.d/crossbuild-template.yml
Expand Up @@ -11,6 +11,11 @@
i386-softmmu microblaze-softmmu mips-softmmu mipsel-softmmu
mips64-softmmu ppc-softmmu sh4-softmmu xtensa-softmmu"
- make -j$(expr $(nproc) + 1) all check-build $MAKE_CHECK_ARGS
- if grep -q "EXESUF=.exe" config-host.mak;
then make installer;
version="$(git describe --match v[0-9]*)";
mv -v qemu-setup*.exe qemu-setup-${version}.exe;
fi

# Job to cross-build specific accelerators.
#
Expand Down
6 changes: 6 additions & 0 deletions .gitlab-ci.d/crossbuilds.yml
Expand Up @@ -160,13 +160,19 @@ cross-win32-system:
job: win32-fedora-cross-container
variables:
IMAGE: fedora-win32-cross
artifacts:
paths:
- build/qemu-setup*.exe

cross-win64-system:
extends: .cross_system_build_job
needs:
job: win64-fedora-cross-container
variables:
IMAGE: fedora-win64-cross
artifacts:
paths:
- build/qemu-setup*.exe

cross-amd64-xen-only:
extends: .cross_accel_build_job
Expand Down
1 change: 1 addition & 0 deletions tests/docker/dockerfiles/fedora-win64-cross.docker
Expand Up @@ -13,6 +13,7 @@ ENV PACKAGES \
hostname \
make \
meson \
mingw32-nsis \
mingw64-bzip2 \
mingw64-curl \
mingw64-glib2 \
Expand Down

0 comments on commit 8619b5d

Please sign in to comment.