From b2c5885050d0c67ab196b55b6548cd772c5d625d Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Fri, 26 Jul 2024 13:07:31 +0800 Subject: [PATCH] [CI] CI cache --- .github/workflows/core_build.yml | 9 ++++----- .github/workflows/windows_build.yml | 10 ++-------- 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/.github/workflows/core_build.yml b/.github/workflows/core_build.yml index fe4802e5..b0f272f7 100644 --- a/.github/workflows/core_build.yml +++ b/.github/workflows/core_build.yml @@ -50,13 +50,12 @@ jobs: path: 'modules/mod-playerbots' - name: Cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: - path: | - /var/cache/apt - /var/lib/apt - key: ccache:${{ matrix.os }}:${{ github.ref }}:${{ github.sha }} + path: ${{ github.workspace }}/var/ccache + key: ccache:${{ matrix.os }}:${{ github.ref }}:${{ matrix.c_compiler }}:${{ github.sha }} restore-keys: | + ccache:${{ matrix.os }}:${{ github.ref }}:${{ matrix.c_compiler }} ccache:${{ matrix.os }}:${{ github.ref }} ccache:${{ matrix.os }} diff --git a/.github/workflows/windows_build.yml b/.github/workflows/windows_build.yml index d6829895..48d33ba2 100644 --- a/.github/workflows/windows_build.yml +++ b/.github/workflows/windows_build.yml @@ -26,14 +26,8 @@ jobs: with: repository: 'liyunfan1223/mod-playerbots' path: 'modules/mod-playerbots' - - name: Cache - uses: actions/cache@v3 - with: - path: C:\ProgramData\chocolatey\cache - key: ccache:${{ matrix.os }}:${{ github.ref }}:${{ github.sha }} - restore-keys: | - ccache:${{ matrix.os }}:${{ github.ref }} - ccache:${{ matrix.os }} + - name: ccache + uses: hendrikmuhs/ccache-action@v1.2.13 - name: Configure OS shell: bash env: