Skip to content

Commit 17d6edf

Browse files
[ci] follow up fix for cache version bump
1 parent 12124dd commit 17d6edf

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
@@ -115,7 +115,9 @@ jobs:
115115
- name: Prepare sccache timestamp
116116
id: cache_key
117117
run: |
118-
echo "SCCACHE_KEY=${{ matrix.target }}-${{ env.TOOLCHAIN_CHANNEL }}-sccache-v14-$(date +'%Y-%m-%d-%I-%M-%S')" >> $GITHUB_OUTPUT
118+
export SCCACHE_KEY_PREFIX="${{ matrix.target }}-${{ env.TOOLCHAIN_CHANNEL }}-sccache-v14-"
119+
echo "SCCACHE_KEY_PREFIX=$SCCACHE_KEY_PREFIX" >> $GITHUB_OUTPUT
120+
echo "SCCACHE_KEY=$SCCACHE_KEY_PREFIX$(date +'%Y-%m-%d-%I-%M-%S')" >> $GITHUB_OUTPUT
119121
120122
- name: Check Xcode version
121123
if: ${{ startsWith(matrix.build_os, 'macos-') }}
@@ -128,7 +130,7 @@ jobs:
128130
path: build-cache
129131
key: ${{ steps.cache_key.outputs.SCCACHE_KEY }}
130132
restore-keys: |
131-
${{ matrix.target }}-sccache-v13-
133+
${{ steps.cache_key.outputs.SCCACHE_KEY_PREFIX }}
132134
133135
- name: Clean build directory
134136
if: ${{ matrix.clean_build_dir }}

0 commit comments

Comments
 (0)