GHActions:Linux: Make ccache config global

New testing step was missing the config
This commit is contained in:
TellowKrinkle 2021-08-18 22:19:26 -05:00 committed by lightningterror
parent 756e3b4a12
commit c93692a779
2 changed files with 7 additions and 6 deletions

View File

@ -104,6 +104,13 @@ jobs:
# Set some sort of timeout in the event of run-away builds. We are limited on concurrent jobs so, get rid of them.
timeout-minutes: 30
env:
CCACHE_BASEDIR: ${{ github.workspace }}
CCACHE_DIR: ${{ github.workspace }}/.ccache
CCACHE_COMPRESS: true
CCACHE_COMPRESSLEVEL: 9
CCACHE_MAXSIZE: 100M
steps:
# NOTE - useful for debugging
# - name: Dump GitHub context

View File

@ -6,12 +6,6 @@ if [ -n "${GITHUB_ACTIONS}" ]; then
echo "Warning: Running this script outside of GitHub Actions isn't recommended."
fi
export CCACHE_BASEDIR=${GITHUB_WORKSPACE}
export CCACHE_DIR=${GITHUB_WORKSPACE}/.ccache
export CCACHE_COMPRESS="true"
export CCACHE_COMPRESSLEVEL="6"
export CCACHE_MAXSIZE="400M"
# Prepare the Cache
ccache -p
ccache -z