diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml index 3173827..1246015 100644 --- a/.forgejo/workflows/test.yml +++ b/.forgejo/workflows/test.yml @@ -37,11 +37,17 @@ jobs: - name: Cache ccache dir uses: https://code.forgejo.org/actions/cache@v3 with: - path: ~/.ccache + path: .ccache key: ${{ runner.os }}-${{ github.sha }} restore-keys: | ${{ 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" echo "$PATH" >> "$GITHUB_PATH" - run: |