From 6ab1a7cb22b5cffe94e1826ae6db021e3d282d37 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Sat, 20 Nov 2021 08:51:24 -0500 Subject: [PATCH] actions: clang: add branch name to ccache key Add branch name to the ccache key to avoid cache contamination from old branches. Signed-off-by: Anas Nashif --- .github/workflows/clang.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/clang.yaml b/.github/workflows/clang.yaml index 23d5f855d46..fe458905fb3 100644 --- a/.github/workflows/clang.yaml +++ b/.github/workflows/clang.yaml @@ -69,7 +69,7 @@ jobs: id: cache-ccache uses: nashif/action-s3-cache@master with: - key: ${{ steps.ccache_cache_timestamp.outputs.repo }}-clang-${{ matrix.platform }}-ccache + key: ${{ steps.ccache_cache_timestamp.outputs.repo }}-${{ github.ref_name }}-clang-${{ matrix.platform }}-ccache path: /github/home/.ccache aws-s3-bucket: ccache.zephyrproject.org aws-access-key-id: ${{ secrets.CCACHE_S3_ACCESS_KEY_ID }}