Add ccache

This commit is contained in:
Matthias Kuhn 2020-08-09 14:06:51 +02:00
parent cdc479476c
commit cf2dc78f63
3 changed files with 14 additions and 3 deletions

View File

@ -3,6 +3,7 @@ MAINTAINER Matthias Kuhn <matthias@opengis.ch>
RUN dnf -y install \
bison \
ccache \
clang \
clazy \
exiv2-devel \

View File

@ -3,9 +3,10 @@
mkdir /usr/src/qgis/build
cd /usr/src/qgis/build || exit -1
ccache -S
cmake -GNinja \
-DUSE_CCACHE=OFF \
-DUSE_CCACHE=ON \
-DWITH_QUICK=ON \
-DWITH_3D=ON \
-DWITH_STAGED_PLUGINS=ON \
@ -31,5 +32,6 @@ cmake -GNinja \
-DWERROR=TRUE \
..
ninja
ccache -S

View File

@ -21,6 +21,14 @@ jobs:
run: |
docker build -t qgis_build_deps -f .ci/qt5_14/Dockerfile .
- name: Cache
id: cache
uses: actions/cache@v2
with:
path: ~/.ccache
key: qt514
- name: Run build
run: |
docker run -v $(pwd):/usr/src/qgis qgis_build_deps /usr/src/qgis/.ci/qt5_14/build.sh
docker run -v ~/.ccache:/root/ccache -v $(pwd):/usr/src/qgis qgis_build_deps /usr/src/qgis/.ci/qt5_14/build.sh