Skip to content

Commit

Permalink
cache out dir
Browse files Browse the repository at this point in the history
  • Loading branch information
incognitojam committed Jun 20, 2024
1 parent 810841a commit a51d0cc
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,25 @@ jobs:
- name: checkout submodule ref
run: git submodule update --init --filter blob:none agnos-kernel-sdm845

- uses: hendrikmuhs/ccache-action@c92f40bee50034e84c763e33b317c77adaa81c92
- id: kernel-submodule
run: echo "ref=$(git ls-tree HEAD | awk '$4 == "agnos-kernel-sdm845"' | awk '{print $3}')" >> "$GITHUB_OUTPUT"

- uses: actions/cache/restore@v5
id: restore-cache
with:
create-symlink: true
key: kernel-${{ steps.kernel-submodule.outputs.ref }}
path: agnos-kernel-sdm845/out
restore-keys: |
kernel-
- run: ./build_kernel.sh

- uses: actions/cache/save@v5
if: always()
with:
key: ${{ steps.restore-cache.outputs.cache-primary-key }}
path: agnos-kernel-sdm845/out

- uses: actions/upload-artifact@v4
with:
name: boot.img
Expand Down

0 comments on commit a51d0cc

Please sign in to comment.