diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8f9c82f87403e..3af641cffe330 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -47,7 +47,8 @@ jobs: uses: hendrikmuhs/ccache-action@v1.2.16 with: key: macOS-latest-cmake-arm64 - evict-old-files: 1d + evict-old-files: 12h + save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} - name: Dependencies id: depends @@ -116,7 +117,8 @@ jobs: uses: hendrikmuhs/ccache-action@v1.2.16 with: key: macOS-latest-cmake-x64 - evict-old-files: 1d + evict-old-files: 12h + save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} - name: Dependencies id: depends @@ -186,7 +188,8 @@ jobs: uses: hendrikmuhs/ccache-action@v1.2.16 with: key: ubuntu-cpu-cmake - evict-old-files: 1d + evict-old-files: 12h + save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} - name: Dependencies id: depends @@ -267,7 +270,8 @@ jobs: uses: hendrikmuhs/ccache-action@v1.2.16 with: key: ubuntu-latest-cmake-sanitizer-${{ matrix.sanitizer }} - evict-old-files: 1d + evict-old-files: 12h + save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} - name: Dependencies id: depends @@ -346,7 +350,8 @@ jobs: uses: hendrikmuhs/ccache-action@v1.2.16 with: key: ubuntu-latest-cmake-rpc - evict-old-files: 1d + evict-old-files: 12h + save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} - name: Dependencies id: depends @@ -379,7 +384,8 @@ jobs: uses: hendrikmuhs/ccache-action@v1.2.16 with: key: ubuntu-22-cmake-vulkan - evict-old-files: 1d + evict-old-files: 12h + save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} - name: Dependencies id: depends @@ -422,7 +428,8 @@ jobs: uses: hendrikmuhs/ccache-action@v1.2.16 with: key: ubuntu-22-cmake-hip - evict-old-files: 1d + evict-old-files: 12h + save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} - name: Build with native CMake HIP support id: cmake_build @@ -460,7 +467,8 @@ jobs: uses: hendrikmuhs/ccache-action@v1.2.16 with: key: ubuntu-22-cmake-musa - evict-old-files: 1d + evict-old-files: 12h + save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} - name: Build with native CMake MUSA support id: cmake_build @@ -505,7 +513,8 @@ jobs: uses: hendrikmuhs/ccache-action@v1.2.16 with: key: ubuntu-22-cmake-sycl - evict-old-files: 1d + evict-old-files: 12h + save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} - name: Build id: cmake_build @@ -553,7 +562,8 @@ jobs: uses: hendrikmuhs/ccache-action@v1.2.16 with: key: ubuntu-22-cmake-sycl-fp16 - evict-old-files: 1d + evict-old-files: 12h + save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} - name: Build id: cmake_build @@ -578,7 +588,8 @@ jobs: uses: hendrikmuhs/ccache-action@v1.2.16 with: key: macOS-latest-cmake-ios - evict-old-files: 1d + evict-old-files: 12h + save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} - name: Dependencies id: depends @@ -613,7 +624,8 @@ jobs: uses: hendrikmuhs/ccache-action@v1.2.16 with: key: macOS-latest-cmake-tvos - evict-old-files: 1d + evict-old-files: 12h + save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} - name: Dependencies id: depends @@ -652,7 +664,8 @@ jobs: uses: hendrikmuhs/ccache-action@v1.2.16 with: key: macOS-latest-swift - evict-old-files: 1d + evict-old-files: 12h + save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} - name: Dependencies id: depends @@ -698,7 +711,8 @@ jobs: with: key: windows-msys2 variant: sccache - evict-old-files: 1d + evict-old-files: 12h + save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} - name: Setup ${{ matrix.sys }} uses: msys2/setup-msys2@v2 @@ -773,7 +787,8 @@ jobs: with: key: windows-latest-cmake-${{ matrix.build }} variant: sccache - evict-old-files: 1d + evict-old-files: 12h + save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} - name: Clone Kompute submodule id: clone_kompute @@ -925,7 +940,8 @@ jobs: uses: hendrikmuhs/ccache-action@v1.2.16 with: key: ubuntu-latest-cmake-cuda - evict-old-files: 1d + evict-old-files: 12h + save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} - name: Build with CMake run: | @@ -958,7 +974,8 @@ jobs: with: key: ${{ github.job }}-${{ matrix.cuda }}-${{ matrix.build }} variant: sccache - evict-old-files: 1d + evict-old-files: 12h + save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} - name: Install Cuda Toolkit 11.7 if: ${{ matrix.cuda == '11.7' }} @@ -1100,7 +1117,8 @@ jobs: with: key: windows-latest-cmake-sycl variant: sccache - evict-old-files: 1d + evict-old-files: 12h + save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} - name: Install run: | @@ -1184,7 +1202,8 @@ jobs: uses: hendrikmuhs/ccache-action@v1.2.16 with: key: ${{ github.job }} - evict-old-files: 1d + evict-old-files: 12h + save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} - name: Build id: cmake_build @@ -1218,7 +1237,8 @@ jobs: uses: hendrikmuhs/ccache-action@v1.2.16 with: key: windows-latest-cmake-hip-release - evict-old-files: 1d + evict-old-files: 12h + save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} - name: Install id: depends @@ -1319,7 +1339,8 @@ jobs: uses: hendrikmuhs/ccache-action@v1.2.16 with: key: android-build - evict-old-files: 1d + evict-old-files: 12h + save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} - name: Set up JDK uses: actions/setup-java@v3 @@ -1362,7 +1383,8 @@ jobs: uses: hendrikmuhs/ccache-action@v1.2.16 with: key: release - evict-old-files: 1d + evict-old-files: 12h + save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} - name: Determine tag name id: tag