Skip to content

Commit

Permalink
add cache to mingw builds
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Feb 22, 2021
1 parent 61b6cc2 commit 1bddec4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/minw64.yml
Expand Up @@ -63,6 +63,7 @@ jobs:
- name: Build QGIS Application
run: |
mkdir -p ${GITHUB_WORKSPACE}/.ccache
docker run \
--env CCACHE_DIR=/QGIS/.ccache \
-w /QGIS \
Expand Down
6 changes: 6 additions & 0 deletions ms-windows/mingw/build.sh
Expand Up @@ -78,6 +78,7 @@ mkdir -p "$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" \
Expand Down Expand Up @@ -116,7 +117,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"
mingw$bits-ccache -s

# Remove plugins with missing dependencies
rm -rf "${installroot}/share/qgis/python/plugins/{MetaSearch,processing}"
Expand Down
1 change: 1 addition & 0 deletions ms-windows/mingw/qgis3-build-deps-mingw.dockerfile
Expand Up @@ -12,6 +12,7 @@ dnf config-manager --add-repo https://copr.fedorainfracloud.org/coprs/smani/ming
dnf install -y --nogpgcheck \
mingw64-dlfcn \
mingw64-exiv2 \
mingw64-ccache \
mingw64-gcc-c++ \
mingw64-gdal \
mingw64-gdb \
Expand Down

0 comments on commit 1bddec4

Please sign in to comment.