When troubleshooting unit test failures and repeating jobs in GHA, the absence of ccache makes the whole process way slower.
Signed-off-by: David Marchand <david.march...@redhat.com> --- .github/workflows/build.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e5f17ef6ac..6c4bc664d0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -164,6 +164,12 @@ jobs: chmod o-w $HOME - name: Build and test run: .ci/linux-build.sh + - name: Save ccache on failure + if: failure() + uses: actions/cache/save@v4 + with: + path: ~/.ccache + key: ${{ steps.get_ref_keys.outputs.ccache }}-${{ github.ref }} - name: Upload logs on failure if: failure() uses: actions/upload-artifact@v4 -- 2.49.0