Skip to content

Commit 448a1f4

Browse files
[ci] follow up fix for cache version bump
1 parent 4f742d1 commit 448a1f4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/build-toolchain.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ jobs:
117117
- name: Prepare sccache timestamp
118118
id: cache_key
119119
run: |
120-
echo "SCCACHE_KEY=${{ matrix.target }}-${{ env.TOOLCHAIN_CHANNEL }}-sccache-v13-$(date +'%Y-%m-%d-%I-%M-%S')" >> $GITHUB_OUTPUT
120+
export SCCACHE_KEY_PREFIX="${{ matrix.target }}-${{ env.TOOLCHAIN_CHANNEL }}-sccache-v14-"
121+
echo "SCCACHE_KEY_PREFIX=$SCCACHE_KEY_PREFIX" >> $GITHUB_OUTPUT
122+
echo "SCCACHE_KEY=$SCCACHE_KEY_PREFIX$(date +'%Y-%m-%d-%I-%M-%S')" >> $GITHUB_OUTPUT
121123
122124
- name: Check Xcode version
123125
if: ${{ startsWith(matrix.build_os, 'macos-') }}
@@ -130,7 +132,7 @@ jobs:
130132
path: build-cache
131133
key: ${{ steps.cache_key.outputs.SCCACHE_KEY }}
132134
restore-keys: |
133-
${{ matrix.target }}-sccache-v13-
135+
${{ steps.cache_key.outputs.SCCACHE_KEY_PREFIX }}
134136
135137
- name: Clean build directory
136138
if: ${{ matrix.clean_build_dir }}

0 commit comments

Comments
 (0)