Skip to content
Permalink
Browse files

add cache to mingw builds (#41734)

  • Loading branch information
3nids committed Feb 22, 2021
1 parent 61b6cc2 commit 002e634dba509caf4baf5451983e316f54a6e277
Showing with 11 additions and 0 deletions.
  1. +1 −0 .github/workflows/minw64.yml
  2. +9 −0 ms-windows/mingw/build.sh
  3. +1 −0 ms-windows/mingw/qgis3-build-deps-mingw.dockerfile
@@ -63,6 +63,7 @@ jobs:
- name: Build QGIS Application
run: |
mkdir -p ${GITHUB_WORKSPACE}/.ccache
docker run \
--env CCACHE_DIR=/QGIS/.ccache \
-w /QGIS \
@@ -71,13 +71,15 @@ installprefix="$installroot/usr/$arch-w64-mingw32/sys-root/mingw"
rm -rf "$installroot"

# Build
echo "::group::cmake"
mkdir -p "$BUILDDIR"
(
CRSSYNC_BIN=$(readlink -f "$SRCDIR")/build/output/bin/crssync
cd "$BUILDDIR"
QSCI_VER=$(grep -Eo '\s*([0-9]+\.[0-9]+\.[0-9]+)' "$MINGWROOT/include/qt5/Qsci/qsciglobal.h")
mingw$bits-cmake \
-DCMAKE_CROSS_COMPILING=1 \
-DUSE_CCACHE=ON \
-DCMAKE_BUILD_TYPE=$buildtype \
-DNATIVE_CRSSYNC_BIN="$CRSSYNC_BIN" \
-DQSCINTILLA_VERSION_STR="$QSCI_VER" \
@@ -103,6 +105,8 @@ mkdir -p "$BUILDDIR"
-DTXT2TAGS_EXECUTABLE= \
..
)
echo "::endgroup::"


# Compile native crssync
# mkdir -p $BUILDDIR/native_crssync
@@ -116,7 +120,12 @@ mkdir -p "$BUILDDIR"
# Xvfb :99 &
# export DISPLAY=:99

echo "::group::compile QGIS"
mingw$bits-make -C"$BUILDDIR" -j"$njobs" DESTDIR="${installroot}" install VERBOSE=1
echo "::endgroup::"

#echo "ccache statistics"
ccache -s

# Remove plugins with missing dependencies
rm -rf "${installroot}/share/qgis/python/plugins/{MetaSearch,processing}"
@@ -12,6 +12,7 @@ dnf config-manager --add-repo https://copr.fedorainfracloud.org/coprs/smani/ming
dnf install -y --nogpgcheck \
mingw64-dlfcn \
mingw64-exiv2 \
ccache \
mingw64-gcc-c++ \
mingw64-gdal \
mingw64-gdb \

0 comments on commit 002e634

Please sign in to comment.