CCACHE_BASEDIR: ${{ github.workspace }}
CCACHE_COMPRESS: true
CCACHE_MAXSIZE: 150M
+ EVICT_CCACHE_AGE: 1200s
CC: gcc
OS_NAME: linux
with:
name: Lint Results
path: src/frontends/android/app/build/reports/lint-results*.xml
+ - if: github.event_name == 'push'
+ run: |
+ ccache --evict-older-than ${{ env.EVICT_CCACHE_AGE }}
+ ccache -sv
# delete old cache entry as we currently can't update it any other way
- env:
GH_TOKEN: ${{ github.token }}
CCACHE_BASEDIR: ${{ github.workspace }}
CCACHE_COMPRESS: true
CCACHE_MAXSIZE: 100M
+ EVICT_CCACHE_AGE: 1200s
OS_NAME: linux
jobs:
ccache -z
- run: ./scripts/test.sh build-deps
- run: ccache -sv
+ - if: fromJSON(env.STORE_DEPS_CACHE)
+ run: |
+ ccache --evict-older-than ${{ env.EVICT_CCACHE_AGE }}
+ ccache -sv
# delete old cache entry as we currently can't update it any other way
- env:
GH_TOKEN: ${{ github.token }}
- run: ccache -z
- run: ./scripts/test.sh
- run: ccache -sv
+ - if: fromJSON(env.STORE_CACHE)
+ run: |
+ ccache --evict-older-than ${{ env.EVICT_CCACHE_AGE }}
+ ccache -sv
# delete old cache entry as we currently can't update it any other way
- env:
GH_TOKEN: ${{ github.token }}
echo "TESTS_ACTIVE_TRANSFORMS=$HOME/active-transforms.log" >> $GITHUB_ENV
- run: ./scripts/test.sh build-deps
- run: ccache -sv
+ - if: fromJSON(env.STORE_DEPS_CACHE)
+ run: |
+ ccache --evict-older-than ${{ env.EVICT_CCACHE_AGE }}
+ ccache -sv
# delete old cache entry as we currently can't update it any other way
- env:
GH_TOKEN: ${{ github.token }}
- name: Verify active transforms
run: |
test ! -f $ACTIVE_TRANSFORMS_REF || diff -us --color=always $ACTIVE_TRANSFORMS_REF $TESTS_ACTIVE_TRANSFORMS
- - run: ccache -sv
- if: ${{ failure() }}
uses: actions/upload-artifact@v6
with:
ccache -z
- run: ./scripts/test.sh build-deps
- run: ccache -sv
+ - if: fromJSON(env.STORE_DEPS_CACHE)
+ run: |
+ ccache --evict-older-than ${{ env.EVICT_CCACHE_AGE }}
+ ccache -sv
# delete old cache entry as we currently can't update it any other way
- env:
GH_TOKEN: ${{ github.token }}
- run: ccache -z
- run: ./scripts/test.sh
- run: ccache -sv
+ - if: github.event_name == 'push'
+ run: |
+ ccache --evict-older-than ${{ env.EVICT_CCACHE_AGE }}
+ ccache -sv
# delete old cache entry as we currently can't update it any other way
- env:
GH_TOKEN: ${{ github.token }}
- run: ./scripts/test.sh deps
- run: ./scripts/test.sh
- run: ccache -sv
+ - if: github.event_name == 'push'
+ run: |
+ ccache --evict-older-than ${{ env.EVICT_CCACHE_AGE }}
+ ccache -sv
# delete old cache entry as we currently can't update it any other way
- env:
GH_TOKEN: ${{ github.token }}
CCACHE_BASEDIR: ${{ github.workspace }}
CCACHE_COMPRESS: true
CCACHE_MAXSIZE: 100M
+ EVICT_CCACHE_AGE: 1200s
OS_NAME: macos
jobs:
ccache -z
- uses: ./.github/actions/default
- run: ccache -sv
+ - if: github.event_name == 'push'
+ run: |
+ ccache --evict-older-than ${{ env.EVICT_CCACHE_AGE }}
+ ccache -sv
# delete old cache entry as we currently can't update it any other way
- env:
GH_TOKEN: ${{ github.token }}
CCACHE_BASEDIR: ${{ github.workspace }}
CCACHE_COMPRESS: true
CCACHE_MAXSIZE: 100M
+ EVICT_CCACHE_AGE: 1200s
OS_NAME: linux
jobs:
-Dsonar.cfamily.threads=2
-Dsonar.cfamily.compile-commands=${{ env.BUILD_WRAPPER_OUT_DIR }}/compile_commands.json
- run: ccache -sv
+ - if: github.event_name == 'push'
+ run: |
+ ccache --evict-older-than ${{ env.EVICT_CCACHE_AGE }}
+ ccache -sv
# delete old cache entry as we currently can't update it any other way
- env:
GH_TOKEN: ${{ github.token }}
CCACHE_COMPILERCHECK: content
CCACHE_COMPRESS: true
CCACHE_MAXSIZE: 100M
+ EVICT_CCACHE_AGE: 1200s
jobs:
pre-check:
-e CCACHE_COMPILERCHECK \
-e CCACHE_COMPRESS \
-e CCACHE_MAXSIZE \
+ -e EVICT_CCACHE_AGE \
strongswan-tkm \
bash -c "ccache -z; \
echo '### build charon-tkm'; \
make -j check TESTS_RUNNERS=tkm TESTS_TKM=1 || exit 1; \
cat /tmp/tkm.log; \
ccache -sv; \
+ ccache --evict-older-than $EVICT_CCACHE_AGE; \
+ ccache -sv; \
"
# delete old cache entry as we currently can't update it any other way
- env:
# since the compilers are newly installed every time, we have to use this to
# avoid cache misses
CCACHE_COMPILERCHECK: content
+ EVICT_CCACHE_AGE: 1200s
MONOLITHIC: yes
jobs:
ccache -sz
- uses: ./.github/actions/default
- run: ccache -sv
+ - if: github.event_name == 'push'
+ run: |
+ ccache --evict-older-than ${{ env.EVICT_CCACHE_AGE }}
+ ccache -sv
# delete old cache entry as we currently can't update it any other way
- env:
GH_TOKEN: ${{ github.token }}
# sometimes streaming/threading tests hang completely
timeout-minutes: 30
- run: ccache -sv
+ - if: github.event_name == 'push'
+ run: |
+ ccache --evict-older-than ${{ env.EVICT_CCACHE_AGE }}
+ ccache -sv
# delete old cache entry as we currently can't update it any other way
- env:
GH_TOKEN: ${{ github.token }}