Skip to content

Commit

Permalink
github-ci: store ccache as cache to speed up the build
Browse files Browse the repository at this point in the history
ccache is used to speed up the build, storing ccache directory
 as cache so that it can be restored in successive ci runs

Signed-off-by: Francesco Pham <[email protected]>
  • Loading branch information
Francesco Pham authored and Stefan-Schmidt committed Mar 11, 2024
1 parent 7b8cfb1 commit 53c4f71
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,13 @@ jobs:
key:
cache-openharmony-prebuilts-${{ hashFiles('**/*.xml') }}

- name: ccache
uses: actions/cache@v4
with:
path: /github/home/.ccache
key: build-ccache-${{ github.sha }}
restore-keys: build-ccache-

- name: Build
run: |
# a shared ccache is used to speed up the build
Expand Down

0 comments on commit 53c4f71

Please sign in to comment.