Merge branch 'msys2-ccache-setup-first' into 'master'

CI: move ccache setup before building anything

See merge request GNOME/gtk!2379
This commit is contained in:
Christoph Reiter 2020-08-05 22:05:25 +00:00
commit d1718355cd

View File

@ -33,6 +33,10 @@ pacman --noconfirm -S --needed \
mingw-w64-$MSYS2_ARCH-gst-plugins-bad \
mingw-w64-$MSYS2_ARCH-shared-mime-info
mkdir -p _ccache
export CCACHE_BASEDIR="$(pwd)"
export CCACHE_DIR="${CCACHE_BASEDIR}/_ccache"
# https://gitlab.gnome.org/GNOME/gtk/-/issues/2243
# https://gitlab.gnome.org/GNOME/gtk/-/issues/3002
@ -52,10 +56,6 @@ if ! pkg-config --atleast-version=1.45.4 pango; then
fi
pkg-config --modversion pango
mkdir -p _ccache
export CCACHE_BASEDIR="$(pwd)"
export CCACHE_DIR="${CCACHE_BASEDIR}/_ccache"
# Build
ccache --zero-stats
ccache --show-stats