diff --git a/.github/workflows/linux-workflow.yml b/.github/workflows/linux-workflow.yml index 87311312bf..85d15d0161 100644 --- a/.github/workflows/linux-workflow.yml +++ b/.github/workflows/linux-workflow.yml @@ -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 diff --git a/.github/workflows/scripts/linux/compile.sh b/.github/workflows/scripts/linux/compile.sh index 4a72016161..ae29d171a0 100755 --- a/.github/workflows/scripts/linux/compile.sh +++ b/.github/workflows/scripts/linux/compile.sh @@ -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