diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2018-12-05 21:31:10 +0100 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2018-12-11 14:47:01 +0100 |
commit | 772f4d677da725736ced892f6140bf9eb79980d7 (patch) | |
tree | 819e3d6a080a20f9310f0c88193074a927c57d8c /.gitlab | |
parent | 873dbd1ab75076d3241a17ed3ee101b75d21be76 (diff) | |
download | gdk-pixbuf-772f4d677da725736ced892f6140bf9eb79980d7.tar.gz |
ci: add a msys2 mingw64 job
Diffstat (limited to '.gitlab')
-rw-r--r-- | .gitlab/ci/test-msys2.sh | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/.gitlab/ci/test-msys2.sh b/.gitlab/ci/test-msys2.sh new file mode 100644 index 000000000..008b7c437 --- /dev/null +++ b/.gitlab/ci/test-msys2.sh @@ -0,0 +1,35 @@ +#!/bin/bash + +set -e + +if [[ "$MSYSTEM" == "MINGW32" ]]; then + export MSYS2_ARCH="i686" +else + export MSYS2_ARCH="x86_64" +fi + +pacman --noconfirm -Suy + +pacman --noconfirm -S --needed \ + base-devel \ + mingw-w64-$MSYS2_ARCH-gobject-introspection \ + mingw-w64-$MSYS2_ARCH-glib2 \ + mingw-w64-$MSYS2_ARCH-jasper \ + mingw-w64-$MSYS2_ARCH-libjpeg-turbo \ + mingw-w64-$MSYS2_ARCH-libpng \ + mingw-w64-$MSYS2_ARCH-libtiff \ + mingw-w64-$MSYS2_ARCH-meson \ + mingw-w64-$MSYS2_ARCH-toolchain + +meson --buildtype debug \ + -Dx11=false \ + -Dpng=true \ + -Djpeg=true \ + -Dtiff=true \ + -Djasper=true \ + _build + +cd _build +ninja + +meson test |