This commit is contained in:
parent
f403eed7c0
commit
aec383c0af
|
@ -37,11 +37,17 @@ jobs:
|
||||||
- name: Cache ccache dir
|
- name: Cache ccache dir
|
||||||
uses: https://code.forgejo.org/actions/cache@v3
|
uses: https://code.forgejo.org/actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ~/.ccache
|
path: .ccache
|
||||||
key: ${{ runner.os }}-${{ github.sha }}
|
key: ${{ runner.os }}-${{ github.sha }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-
|
${{ runner.os }}-
|
||||||
- run: |
|
- name: Setup ccache
|
||||||
|
run: |
|
||||||
|
ccache --set-config=cache_dir="${{ github.workspace }}/.ccache"
|
||||||
|
ccache --set-config=compression=true
|
||||||
|
ccache --set-config=compression_level=6
|
||||||
|
ccache -M 4G
|
||||||
|
ccache -z
|
||||||
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
|
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
|
||||||
echo "$PATH" >> "$GITHUB_PATH"
|
echo "$PATH" >> "$GITHUB_PATH"
|
||||||
- run: |
|
- run: |
|
||||||
|
|
Loading…
Reference in a new issue