diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5963b6b..2925f54 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 @@ -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 }}-