From 7d4fcbb1482fc3969626d2eeb299d938637ad4c1 Mon Sep 17 00:00:00 2001 From: Andrea Cavalli Date: Tue, 9 May 2023 10:49:08 +0200 Subject: [PATCH] Cache --- .github/workflows/platform_natives.yaml | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/.github/workflows/platform_natives.yaml b/.github/workflows/platform_natives.yaml index 3b9d103..f26369d 100644 --- a/.github/workflows/platform_natives.yaml +++ b/.github/workflows/platform_natives.yaml @@ -74,14 +74,6 @@ jobs: # Save env to file cat $GITHUB_ENV > github.env - - name: Cache Maven - uses: actions/cache@v3 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-v3-maven-${{ env.SAFE_TYPE }}-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-v3-maven-${{ env.SAFE_TYPE }}- - - name: Cache packages cache uses: actions/cache@v3 with: @@ -90,13 +82,10 @@ jobs: restore-keys: | ${{ runner.os }}-v3-packages-${{ env.SAFE_TYPE }}- - - name: Cache ccache - uses: actions/cache@v3 + - name: ccache + uses: hendrikmuhs/ccache-action@v1.2 with: - path: ~/.ccache - key: ${{ runner.os }}-v2-ccache-${{ env.SAFE_TYPE }}-${{ github.sha }} - restore-keys: | - ${{ runner.os }}-v2-ccache-${{ env.SAFE_TYPE }}- + key: ${{ github.job }}-${{ matrix.os }}-${{ matrix.type }} - name: Setup Java (Snapshot) if: github.ref == 'refs/heads/develop'