[CI] CI cache

This commit is contained in:
Yunfan Li
2024-07-26 13:07:31 +08:00
parent 966c8e652b
commit b2c5885050
2 changed files with 6 additions and 13 deletions

View File

@@ -50,13 +50,12 @@ jobs:
path: 'modules/mod-playerbots' path: 'modules/mod-playerbots'
- name: Cache - name: Cache
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: | path: ${{ github.workspace }}/var/ccache
/var/cache/apt key: ccache:${{ matrix.os }}:${{ github.ref }}:${{ matrix.c_compiler }}:${{ github.sha }}
/var/lib/apt
key: ccache:${{ matrix.os }}:${{ github.ref }}:${{ github.sha }}
restore-keys: | restore-keys: |
ccache:${{ matrix.os }}:${{ github.ref }}:${{ matrix.c_compiler }}
ccache:${{ matrix.os }}:${{ github.ref }} ccache:${{ matrix.os }}:${{ github.ref }}
ccache:${{ matrix.os }} ccache:${{ matrix.os }}

View File

@@ -26,14 +26,8 @@ jobs:
with: with:
repository: 'liyunfan1223/mod-playerbots' repository: 'liyunfan1223/mod-playerbots'
path: 'modules/mod-playerbots' path: 'modules/mod-playerbots'
- name: Cache - name: ccache
uses: actions/cache@v3 uses: hendrikmuhs/ccache-action@v1.2.13
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: Configure OS - name: Configure OS
shell: bash shell: bash
env: env: