Mercurial > octave
changeset 30438:ad705550616c stable
GitHub-CI: Reduce ccache size to approx. 2x the size after a clean run.
* .github/workflows/make.yaml: Reduce ccache size to approx. 2x the cache size
when started with an empty cache.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Sun, 05 Dec 2021 19:30:04 +0100 |
parents | e3df47a19871 |
children | fffccc353ffc |
files | .github/workflows/make.yaml |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/.github/workflows/make.yaml Sun Dec 05 14:58:44 2021 +0100 +++ b/.github/workflows/make.yaml Sun Dec 05 19:30:04 2021 +0100 @@ -60,7 +60,7 @@ run: | echo "::set-output name=TIMESTAMP::$(date +"%Y-%m-%d_%H-%M-%S")" - - name: setup ccache + - name: restore ccache # setup the github cache used to maintain the ccache from one job to the next # uses: actions/cache@v2 # The original action doesn't upload on error. Use this fork instead. @@ -215,7 +215,7 @@ # Limit the maximum size to avoid exceeding the total cache limits. run: | test -d /Users/runner/Library/Preferences/ccache || mkdir /Users/runner/Library/Preferences/ccache - echo "max_size = 1.5G" >> /Users/runner/Library/Preferences/ccache/ccache.conf + echo "max_size = 0.9G" >> /Users/runner/Library/Preferences/ccache/ccache.conf ccache -s echo "$(brew --prefix)/opt/ccache/libexec" >> $GITHUB_PATH @@ -405,7 +405,7 @@ run: | echo "::set-output name=TIMESTAMP::$(date +"%Y-%m-%d_%H-%M-%S")" - - name: setup ccache + - name: restore ccache # Setup the github cache used to maintain the ccache from one job to the next uses: actions/cache@v2 with: @@ -420,7 +420,7 @@ run: | which ccache test -d ~/.ccache || mkdir -p ~/.ccache - echo "max_size = 1.2G" > ~/.ccache/ccache.conf + echo "max_size = 0.9G" > ~/.ccache/ccache.conf echo "compression = true" >> ~/.ccache/ccache.conf ccache -s # create ccache helper script for Fortran compiler