[PATCH 01/10] ci: save ccache on failure
    Aaron Conole 
    aconole at redhat.com
       
    Wed Jun 25 14:16:09 CEST 2025
    
    
  
David Marchand <david.marchand at redhat.com> writes:
> 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 at redhat.com>
> ---
Acked-by: Aaron Conole <aconole at 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 at v4
> +      with:
> +        path: ~/.ccache
> +        key: ${{ steps.get_ref_keys.outputs.ccache }}-${{ github.ref }}
>      - name: Upload logs on failure
>        if: failure()
>        uses: actions/upload-artifact at v4
    
    
More information about the dev
mailing list