From 6faf5101e87f4e6ab14810b287859ec4247abea0 Mon Sep 17 00:00:00 2001 From: tommie Date: Sun, 24 Dec 2023 16:03:16 +0100 Subject: [PATCH] Makes cache key involve the v8 version GitHub caches are copy on write. --- .github/workflows/v8build.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/v8build.yml b/.github/workflows/v8build.yml index 3efb93e3..4b98fa1a 100644 --- a/.github/workflows/v8build.yml +++ b/.github/workflows/v8build.yml @@ -23,7 +23,10 @@ jobs: uses: actions/cache@v3 with: path: ~/.ccache - key: ${{ runner.os }}:${{ matrix.os }}:${{ matrix.arch }}:libv8:ccache + key: libv8:ccache:${{ matrix.os }}:${{ matrix.arch }}:${{ hashFiles('deps/v8_version) }}:${{ runner.os }} + restore_keys: | + libv8:ccache:${{ matrix.os }}:${{ matrix.arch }}: + ${{ runner.os }}:${{ matrix.os }}:${{ matrix.arch }}:libv8:ccache - name: Install CCache if: matrix.platform == 'ubuntu-latest' @@ -43,13 +46,11 @@ jobs: - name: Configure CCache run: | - echo "CCACHE_CPP2=yes" >> "$GITHUB_ENV" - echo "CCACHE_SLOPPINESS=time_macros" >> "$GITHUB_ENV" - ccacheDir="$HOME/.ccache" mkdir -p "$ccacheDir" - echo "CCACHE_DIR=$ccacheDir" >> "$GITHUB_ENV" + echo "CCACHE_CPP2=yes" >> "$GITHUB_ENV" + echo "CCACHE_SLOPPINESS=time_macros" >> "$GITHUB_ENV" - name: Install g++-aarch64-linux-gnu if: matrix.os == 'linux' && matrix.arch == 'arm64'