-
Notifications
You must be signed in to change notification settings - Fork 12.2k
ci
: ccache for all github worfklows
#11516
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
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
425e6a1
`ci`: ccache
19d8922
`docker`: ccache
8cc4937
use evict-old-files: job
deef03d
bump ccache-action version to get evict-old-files support
3d415e1
single cache to rule them all, 1d eviction
6d4762b
Revert "`docker`: ccache"
e4628c0
revert change
b373f8c
Reinstate cache keys specific to each job
d0491ce
on containers, install ccache after apt-get (+ dedupe existing ccache…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,6 +43,12 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
|
||
- name: ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: macOS-latest-cmake-arm64 | ||
evict-old-files: 1d | ||
|
||
- name: Dependencies | ||
id: depends | ||
continue-on-error: true | ||
|
@@ -108,6 +114,12 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
|
||
- name: ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: macOS-latest-cmake-x64 | ||
evict-old-files: 1d | ||
|
||
- name: Dependencies | ||
id: depends | ||
continue-on-error: true | ||
|
@@ -172,6 +184,12 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
|
||
- name: ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: ubuntu-cpu-cmake | ||
evict-old-files: 1d | ||
|
||
- name: Dependencies | ||
id: depends | ||
run: | | ||
|
@@ -249,6 +267,12 @@ jobs: | |
id: checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: ubuntu-latest-cmake-sanitizer-${{ matrix.sanitizer }} | ||
evict-old-files: 1d | ||
|
||
- name: Dependencies | ||
id: depends | ||
run: | | ||
|
@@ -296,6 +320,12 @@ jobs: | |
id: checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: ubuntu-latest-cmake-rpc | ||
evict-old-files: 1d | ||
|
||
- name: Dependencies | ||
id: depends | ||
run: | | ||
|
@@ -325,6 +355,12 @@ jobs: | |
id: checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: ubuntu-22-cmake-vulkan | ||
evict-old-files: 1d | ||
|
||
- name: Dependencies | ||
id: depends | ||
run: | | ||
|
@@ -364,6 +400,12 @@ jobs: | |
sudo apt-get update | ||
sudo apt-get install -y build-essential git cmake rocblas-dev hipblas-dev | ||
|
||
- name: ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: ubuntu-22-cmake-hip | ||
evict-old-files: 1d | ||
|
||
- name: Build with native CMake HIP support | ||
id: cmake_build | ||
run: | | ||
|
@@ -396,6 +438,12 @@ jobs: | |
apt-get update | ||
apt-get install -y build-essential git cmake libcurl4-openssl-dev | ||
|
||
- name: ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: ubuntu-22-cmake-musa | ||
evict-old-files: 1d | ||
|
||
- name: Build with native CMake MUSA support | ||
id: cmake_build | ||
run: | | ||
|
@@ -435,6 +483,12 @@ jobs: | |
id: checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: ubuntu-22-cmake-sycl | ||
evict-old-files: 1d | ||
|
||
- name: Build | ||
id: cmake_build | ||
run: | | ||
|
@@ -479,6 +533,12 @@ jobs: | |
id: checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: ubuntu-22-cmake-sycl-fp16 | ||
evict-old-files: 1d | ||
|
||
- name: Build | ||
id: cmake_build | ||
run: | | ||
|
@@ -500,6 +560,12 @@ jobs: | |
id: checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: macOS-latest-cmake-ios | ||
evict-old-files: 1d | ||
|
||
- name: Dependencies | ||
id: depends | ||
continue-on-error: true | ||
|
@@ -531,6 +597,12 @@ jobs: | |
id: checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: macOS-latest-cmake-tvos | ||
evict-old-files: 1d | ||
|
||
- name: Dependencies | ||
id: depends | ||
continue-on-error: true | ||
|
@@ -566,6 +638,12 @@ jobs: | |
id: checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: macOS-latest-swift | ||
evict-old-files: 1d | ||
|
||
- name: Dependencies | ||
id: depends | ||
continue-on-error: true | ||
|
@@ -607,6 +685,12 @@ jobs: | |
- name: Clone | ||
uses: actions/checkout@v4 | ||
|
||
- name: ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: windows-msys2 | ||
evict-old-files: 1d | ||
|
||
- name: Setup ${{ matrix.sys }} | ||
uses: msys2/setup-msys2@v2 | ||
with: | ||
|
@@ -675,6 +759,12 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
|
||
- name: ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: windows-latest-cmake-${{ matrix.build }} | ||
evict-old-files: 1d | ||
|
||
- name: Clone Kompute submodule | ||
id: clone_kompute | ||
if: ${{ matrix.build == 'kompute-x64' }} | ||
|
@@ -813,6 +903,8 @@ jobs: | |
- name: Clone | ||
id: checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install dependencies | ||
env: | ||
|
@@ -821,6 +913,12 @@ jobs: | |
apt update | ||
apt install -y cmake build-essential ninja-build libgomp1 git | ||
|
||
- name: ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: ubuntu-latest-cmake-cuda | ||
evict-old-files: 1d | ||
|
||
- name: Build with CMake | ||
run: | | ||
cmake -S . -B build -G Ninja \ | ||
|
@@ -847,6 +945,12 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: ${{ github.job }}-${{ matrix.cuda }}-${{ matrix.build }} | ||
evict-old-files: 1d | ||
|
||
- name: Install Cuda Toolkit 11.7 | ||
if: ${{ matrix.cuda == '11.7' }} | ||
run: | | ||
|
@@ -903,11 +1007,6 @@ jobs: | |
echo "CUDA_PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8 | ||
echo "CUDA_PATH_V12_4=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8 | ||
|
||
- name: Install ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: ${{ github.job }}-${{ matrix.cuda }}-${{ matrix.build }} | ||
|
||
- name: Install Ninja | ||
id: install_ninja | ||
run: | | ||
|
@@ -987,6 +1086,12 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
|
||
- name: ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: windows-latest-cmake-sycl | ||
evict-old-files: 1d | ||
|
||
- name: Install | ||
run: | | ||
scripts/install-oneapi.bat $WINDOWS_BASEKIT_URL $WINDOWS_DPCPP_MKL | ||
|
@@ -1066,9 +1171,10 @@ jobs: | |
& 'C:\Program Files\AMD\ROCm\*\bin\clang.exe' --version | ||
|
||
- name: Install ccache | ||
uses: hendrikmuhs/[email protected] | ||
uses: hendrikmuhs/[email protected].16 | ||
with: | ||
key: ${{ github.job }} | ||
evict-old-files: 1d | ||
|
||
- name: Build | ||
id: cmake_build | ||
|
@@ -1098,6 +1204,12 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
|
||
- name: ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: windows-latest-cmake-hip-release | ||
evict-old-files: 1d | ||
|
||
- name: Install | ||
id: depends | ||
run: | | ||
|
@@ -1195,6 +1307,12 @@ jobs: | |
- name: Clone | ||
uses: actions/checkout@v4 | ||
|
||
- name: ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: android-build | ||
evict-old-files: 1d | ||
|
||
- name: Set up JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
|
@@ -1232,6 +1350,12 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
|
||
- name: ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: release | ||
evict-old-files: 1d | ||
|
||
- name: Determine tag name | ||
id: tag | ||
shell: bash | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.