[v2,01/10] ci: save ccache on failure
Checks
Commit Message
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.marchand@redhat.com>
---
.github/workflows/build.yml | 6 ++++++
1 file changed, 6 insertions(+)
@@ -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