mirror of
https://github.com/commaai/agnos-builder.git
synced 2026-07-13 10:52:06 +08:00
Fix kernel build ccache not being used in CI (#518)
This commit is contained in:
@@ -41,13 +41,19 @@ jobs:
|
||||
id: kernel-submodule
|
||||
run: echo "ref=$(git ls-tree HEAD | awk '$4 == "agnos-kernel-sdm845"' | awk '{print $3}')" | tee -a $GITHUB_OUTPUT
|
||||
|
||||
- name: ccache
|
||||
uses: hendrikmuhs/ccache-action@c92f40bee50034e84c763e33b317c77adaa81c92
|
||||
- name: Restore ccache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
key: kernel-${{ steps.kernel-submodule.outputs.ref }}
|
||||
restore-keys: kernel-
|
||||
path: .ccache
|
||||
key: ccache-kernel-${{ steps.kernel-submodule.outputs.ref }}-${{ github.run_id }}
|
||||
restore-keys: |
|
||||
ccache-kernel-${{ steps.kernel-submodule.outputs.ref }}-
|
||||
ccache-kernel-
|
||||
|
||||
- name: Build kernel
|
||||
env:
|
||||
CCACHE_DIR: ${{ github.workspace }}/.ccache
|
||||
CCACHE_MAXSIZE: 5G
|
||||
run: ./build_kernel.sh
|
||||
|
||||
- name: Update VERSION
|
||||
|
||||
Reference in New Issue
Block a user