changeset 32050:c00d842608f7

GitHub-CI (mingw): Reduce ccache size to approx. 2x the size after a clean run. * .github/workflows/make.yaml (mingw): Reduce ccache size to approx. 2x the cache size when started with an empty cache.
author Markus Mützel <markus.muetzel@gmx.de>
date Sat, 22 Apr 2023 20:59:48 +0200
parents 1c99c8f020f7
children 17a09d2bbe0f
files .github/workflows/make.yaml
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/.github/workflows/make.yaml	Sat Apr 22 19:01:35 2023 +0200
+++ b/.github/workflows/make.yaml	Sat Apr 22 20:59:48 2023 +0200
@@ -379,6 +379,7 @@
             cxx: g++
             f77: gfortran
             extra-config-flags: ""
+            ccache-max: 0.9G
           - msystem: CLANG64
             mingw-prefix: clang64
             target-prefix: mingw-w64-clang-x86_64
@@ -393,6 +394,7 @@
               --enable-fortran-calling-convention=gfortran
               ac_cv_f77_compiler_gnu=yes
               lt_cv_prog_gnu_ld=yes
+            ccache-max: 400M
 
     env:
       CHERE_INVOKING: 1
@@ -506,7 +508,7 @@
         run: |
           which ccache
           test -d ${{ steps.ccache-prepare.outputs.ccachedir }} || mkdir -p ${{ steps.ccache-prepare.outputs.ccachedir }}
-          echo "max_size = 0.9G" > ${{ steps.ccache-prepare.outputs.ccachedir }}/ccache.conf
+          echo "max_size = ${{ matrix.ccache-max }}" > ${{ steps.ccache-prepare.outputs.ccachedir }}/ccache.conf
           echo "compression = true" >> ${{ steps.ccache-prepare.outputs.ccachedir }}/ccache.conf
           ccache -p
           ccache -s