gitlab-ci: Add 32bit MinGW jobs using MSYS2
[glib.git] / .gitlab-ci / test-msys2.sh
blob91384cf44c200ad408027d65d2c234da586fe64a
1 #!/bin/bash
3 set -e
5 export PATH="/c/msys64/$MSYSTEM/bin:$PATH"
6 if [[ "$MSYSTEM" == "MINGW32" ]]; then
7 export MSYS2_ARCH="i686"
8 else
9 export MSYS2_ARCH="x86_64"
12 pacman --noconfirm -Suy
14 pacman --noconfirm -S --needed \
15 base-devel \
16 mingw-w64-$MSYS2_ARCH-ccache \
17 mingw-w64-$MSYS2_ARCH-gettext \
18 mingw-w64-$MSYS2_ARCH-libffi \
19 mingw-w64-$MSYS2_ARCH-meson \
20 mingw-w64-$MSYS2_ARCH-pcre \
21 mingw-w64-$MSYS2_ARCH-python3 \
22 mingw-w64-$MSYS2_ARCH-toolchain \
23 mingw-w64-$MSYS2_ARCH-zlib
25 mkdir -p _ccache
26 export CCACHE_BASEDIR="$(pwd)"
27 export CCACHE_DIR="${CCACHE_BASEDIR}/_ccache"
29 # FIXME: Add --werror
30 meson --buildtype debug _build
31 cd _build
32 ninja
34 # FIXME: fix the test suite
35 meson test || true