From e3fee7806e470d786d91cc0cd8f6c66bfb3a84bd Mon Sep 17 00:00:00 2001 From: LoveSy Date: Sat, 8 Jan 2022 21:51:39 +0800 Subject: [PATCH] Add lto cache to github action cache (#1518) --- .github/workflows/core.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/core.yml b/.github/workflows/core.yml index 9e1a4393..56c4533c 100644 --- a/.github/workflows/core.yml +++ b/.github/workflows/core.yml @@ -49,12 +49,15 @@ jobs: key: gradle-builds-core-${{ github.sha }} restore-keys: | gradle-builds - - name: Cache Ccache + - name: Cache native build uses: actions/cache@v2 with: - path: ~/.ccache - key: ccache-cache-${{ github.sha }} - restore-keys: ccache-cache- + path: | + ~/.ccache + core/build/.lto-cache + daemon/build/.lto-cache + key: native-cache-${{ github.sha }} + restore-keys: native-cache- - name: Install ccache run: | sudo apt-get install -y ccache