Skip to content
Permalink
Browse files

[ogc tests] Remove ccache

Github cache is immutable.
It's useful for caching static dependencies like pip, but not for dynamic caches like ccache.
It has a 0% hit rate and only adds overhead at the moment.
To be revisited when github caching improves.
  • Loading branch information
m-kuhn committed Sep 12, 2020
1 parent 4eca153 commit 6a62f70019dfb0558d590090453b5b8be01df7b9
Showing with 3 additions and 15 deletions.
  1. +0 −1 .ci/ogc/Dockerfile
  2. +2 −6 .ci/ogc/build.sh
  3. +1 −8 .github/workflows/ogc.yml
@@ -8,7 +8,6 @@ RUN apt-get update \
&& apt-get install -y \
cmake \
ninja-build \
ccache \
clang \
flex \
bison \
@@ -3,8 +3,6 @@
mkdir /usr/src/qgis/build
cd /usr/src/qgis/build || exit -1

ccache -s

cmake -GNinja \
-DWITH_QUICK=OFF \
-DWITH_3D=OFF \
@@ -26,11 +24,9 @@ cmake -GNinja \
-DWITH_ORACLE=OFF \
-DDISABLE_DEPRECATED=ON \
-DCXX_EXTRA_FLAGS="${CLANG_WARNINGS}" \
-DCMAKE_C_COMPILER=/usr/lib/ccache/clang \
-DCMAKE_CXX_COMPILER=/usr/lib/ccache/clang++ \
-DCMAKE_C_COMPILER=/bin/clang \
-DCMAKE_CXX_COMPILER=/bin/clang++ \
-DADD_CLAZY_CHECKS=OFF \
..

ninja

ccache -s
@@ -21,16 +21,9 @@ jobs:
run: |
docker build -t qgis_server_deps -f .ci/ogc/Dockerfile .ci/ogc/
- name: Cache
id: cache
uses: actions/cache@v2
with:
path: ~/.ccache
key: ogc

- name: Run build
run: |
docker run -v ~/.ccache:/root/ccache -v $(pwd):/usr/src/qgis qgis_server_deps /usr/src/qgis/.ci/ogc/build.sh
docker run -v $(pwd):/usr/src/qgis qgis_server_deps /usr/src/qgis/.ci/ogc/build.sh
- name: Install pyogctest
run: |

0 comments on commit 6a62f70

Please sign in to comment.
You can’t perform that action at this time.