]> granicus.if.org Git - graphviz/commitdiff
enable persistent Ccache cache in Cygwin CI tasks
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 24 Nov 2021 01:41:55 +0000 (17:41 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 7 Dec 2021 16:09:58 +0000 (08:09 -0800)
This allows cached compilation results to be preserved and reused across CI
runs. It is hoped this will accelerate these currently long running tasks.

.gitlab-ci.yml
ci/cygwin-build.sh

index b99d1b67fc19e0fa7ab627e56568acaa66c57c85..4567799a0d43b93519db10e0f8c9e7716dce07e6 100644 (file)
@@ -584,6 +584,7 @@ windows-cygwin-build:
     cache:
         key: windows-cygwin-build
         paths:
+            - ccache-cache
             - choco-cache
     tags:
         - windows
@@ -613,6 +614,7 @@ windows-cygwin-build-using-autogen:
     cache:
         key: windows-cygwin-build-using-autogen
         paths:
+            - ccache-cache
             - choco-cache
     tags:
         - windows
@@ -970,6 +972,7 @@ windows-cygwin-cmake-build:
     cache:
         key: windows-cygwin-cmake-build
         paths:
+            - ccache-cache
             - choco-cache
     tags:
         - windows
index 2635fe680029a814678439c3287a69cd47aabf91..231ac8545ae35df1de134ec6ae39b2b3e11d60db 100644 (file)
@@ -22,6 +22,7 @@ set -eux
 /cygwinsetup.exe --quiet-mode --wait --packages ccache
 export CC="ccache ${CC:-cc}"
 export CXX="ccache ${CXX:-c++}"
+export CCACHE_DIR=ccache-cache
 
 # use the libs installed with cygwinsetup instead of those in
 # https://gitlab.com/graphviz/graphviz-windows-dependencies