Skip to content

ci: only *write ccache in "push to master" jobs #11661

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 44 additions & 22 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ jobs:
uses: hendrikmuhs/[email protected]
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
Expand Down Expand Up @@ -116,7 +117,8 @@ jobs:
uses: hendrikmuhs/[email protected]
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
Expand Down Expand Up @@ -186,7 +188,8 @@ jobs:
uses: hendrikmuhs/[email protected]
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
Expand Down Expand Up @@ -267,7 +270,8 @@ jobs:
uses: hendrikmuhs/[email protected]
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
Expand Down Expand Up @@ -346,7 +350,8 @@ jobs:
uses: hendrikmuhs/[email protected]
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
Expand Down Expand Up @@ -379,7 +384,8 @@ jobs:
uses: hendrikmuhs/[email protected]
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
Expand Down Expand Up @@ -422,7 +428,8 @@ jobs:
uses: hendrikmuhs/[email protected]
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
Expand Down Expand Up @@ -460,7 +467,8 @@ jobs:
uses: hendrikmuhs/[email protected]
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
Expand Down Expand Up @@ -505,7 +513,8 @@ jobs:
uses: hendrikmuhs/[email protected]
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
Expand Down Expand Up @@ -553,7 +562,8 @@ jobs:
uses: hendrikmuhs/[email protected]
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
Expand All @@ -578,7 +588,8 @@ jobs:
uses: hendrikmuhs/[email protected]
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
Expand Down Expand Up @@ -613,7 +624,8 @@ jobs:
uses: hendrikmuhs/[email protected]
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
Expand Down Expand Up @@ -652,7 +664,8 @@ jobs:
uses: hendrikmuhs/[email protected]
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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -925,7 +940,8 @@ jobs:
uses: hendrikmuhs/[email protected]
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: |
Expand Down Expand Up @@ -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' }}
Expand Down Expand Up @@ -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: |
Expand Down Expand Up @@ -1184,7 +1202,8 @@ jobs:
uses: hendrikmuhs/[email protected]
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
Expand Down Expand Up @@ -1218,7 +1237,8 @@ jobs:
uses: hendrikmuhs/[email protected]
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
Expand Down Expand Up @@ -1319,7 +1339,8 @@ jobs:
uses: hendrikmuhs/[email protected]
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
Expand Down Expand Up @@ -1362,7 +1383,8 @@ jobs:
uses: hendrikmuhs/[email protected]
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
Expand Down
Loading