Skip to content

Commit 767e62b

Browse files
ci: add branch channel in cache key
to avoid invalidating caches from another release or main branch
1 parent 547439e commit 767e62b

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
@@ -117,7 +117,7 @@ jobs:
117117
- name: Prepare sccache timestamp
118118
id: cache_key
119119
run: |
120-
echo "SCCACHE_KEY=${{ matrix.target }}-sccache-v13-$(date +'%Y-%m-%d-%I-%M-%S')" >> $GITHUB_OUTPUT
120+
echo "SCCACHE_KEY=${{ matrix.target }}-${{ env.TOOLCHAIN_CHANNEL }}-sccache-v13-$(date +'%Y-%m-%d-%I-%M-%S')" >> $GITHUB_OUTPUT
121121
122122
- name: Check Xcode version
123123
if: ${{ startsWith(matrix.build_os, 'macos-') }}

0 commit comments

Comments
 (0)