Skip to content

Commit

Permalink
chore: fix ci cache
Browse files Browse the repository at this point in the history
Co-authored-by: lleyton <[email protected]>
  • Loading branch information
infinitebash and lleyton committed Dec 31, 2023
1 parent a5d3068 commit 8169b36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
echo "GOCACHE=$(go env GOCACHE)" >> $GITHUB_ENV
echo "CCACHE_DIR=$(pwd)/ccache" >> $GITHUB_ENV
echo "UROOT_COMMIT=$(git rev-parse HEAD:u-root)" >> $GITHUB_ENV
echo "KERNEL_COMMIT=$(git rev-parse HEAD:kernel)" >> $GITHUB_ENV
echo "KERNEL_COMMIT=$(git rev-parse HEAD:${{ matrix.platform == 'x86_64' && 'kernel-lts' || 'kernel-mainline' }})" >> $GITHUB_ENV
- name: Setup Go cache
uses: actions/cache@v3
Expand All @@ -50,7 +50,7 @@ jobs:
uses: actions/cache@v3
with:
path: ${{ env.CCACHE_DIR }}
key: ccache-${{ matrix.platform }}-${{ env.KERNEL_COMMIT }}-${{ hashFiles('kernel.config') }}
key: ccache-${{ matrix.platform }}-${{ env.KERNEL_COMMIT }}-${{ matrix.platform == 'x86_64' && hashFiles('configs/kernel.x86') || hashFiles('configs/kernel.mt8183') }}
restore-keys: |
ccache-${{ matrix.platform }}-${{ env.KERNEL_COMMIT }}-
ccache-${{ matrix.platform }}-
Expand Down

0 comments on commit 8169b36

Please sign in to comment.