From aec383c0af018cfaec0d12207a25d8bc4e74fa75 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Sun, 6 Oct 2024 20:57:42 -0700 Subject: [PATCH] try to fix ccache --- .forgejo/workflows/test.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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: |