Skip to content

Commit 8a1837f

Browse files
ci: add branch channel in cache key
to avoid invalidating caches from another release or main branch
1 parent 4f2a82a commit 8a1837f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build-toolchain.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ jobs:
115115
- name: Prepare sccache timestamp
116116
id: cache_key
117117
run: |
118-
echo "SCCACHE_KEY=${{ matrix.target }}-sccache-v13-$(date +'%Y-%m-%d-%I-%M-%S')" >> $GITHUB_OUTPUT
118+
echo "SCCACHE_KEY=${{ matrix.target }}-${{ env.TOOLCHAIN_CHANNEL }}-sccache-v13-$(date +'%Y-%m-%d-%I-%M-%S')" >> $GITHUB_OUTPUT
119119
120120
- name: Check Xcode version
121121
if: ${{ startsWith(matrix.build_os, 'macos-') }}

0 commit comments

Comments
 (0)