Skip to content

Commit

Permalink
Makes cache key involve the v8 version
Browse files Browse the repository at this point in the history
GitHub caches are copy on write.
  • Loading branch information
tommie authored Dec 24, 2023
1 parent fa071ba commit 6faf510
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/v8build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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'
Expand Down

0 comments on commit 6faf510

Please sign in to comment.