Skip to content

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 9 commits into from
Jan 30, 2025
Merged
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
136 changes: 130 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ jobs:
with:
fetch-depth: 0

- name: ccache
uses: hendrikmuhs/ccache-action@v1.2.16
with:
key: macOS-latest-cmake-arm64
evict-old-files: 1d

- name: Dependencies
id: depends
continue-on-error: true
Expand Down Expand Up @@ -108,6 +114,12 @@ jobs:
with:
fetch-depth: 0

- name: ccache
uses: hendrikmuhs/ccache-action@v1.2.16
with:
key: macOS-latest-cmake-x64
evict-old-files: 1d

- name: Dependencies
id: depends
continue-on-error: true
Expand Down Expand Up @@ -172,6 +184,12 @@ jobs:
with:
fetch-depth: 0

- name: ccache
uses: hendrikmuhs/ccache-action@v1.2.16
with:
key: ubuntu-cpu-cmake
evict-old-files: 1d

- name: Dependencies
id: depends
run: |
Expand Down Expand Up @@ -249,6 +267,12 @@ jobs:
id: checkout
uses: actions/checkout@v4

- name: ccache
uses: hendrikmuhs/ccache-action@v1.2.16
with:
key: ubuntu-latest-cmake-sanitizer-${{ matrix.sanitizer }}
evict-old-files: 1d

- name: Dependencies
id: depends
run: |
Expand Down Expand Up @@ -296,6 +320,12 @@ jobs:
id: checkout
uses: actions/checkout@v4

- name: ccache
uses: hendrikmuhs/ccache-action@v1.2.16
with:
key: ubuntu-latest-cmake-rpc
evict-old-files: 1d

- name: Dependencies
id: depends
run: |
Expand Down Expand Up @@ -325,6 +355,12 @@ jobs:
id: checkout
uses: actions/checkout@v4

- name: ccache
uses: hendrikmuhs/ccache-action@v1.2.16
with:
key: ubuntu-22-cmake-vulkan
evict-old-files: 1d

- name: Dependencies
id: depends
run: |
Expand Down Expand Up @@ -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/ccache-action@v1.2.16
with:
key: ubuntu-22-cmake-hip
evict-old-files: 1d

- name: Build with native CMake HIP support
id: cmake_build
run: |
Expand Down Expand Up @@ -396,6 +438,12 @@ jobs:
apt-get update
apt-get install -y build-essential git cmake libcurl4-openssl-dev

- name: ccache
uses: hendrikmuhs/ccache-action@v1.2.16
with:
key: ubuntu-22-cmake-musa
evict-old-files: 1d

- name: Build with native CMake MUSA support
id: cmake_build
run: |
Expand Down Expand Up @@ -435,6 +483,12 @@ jobs:
id: checkout
uses: actions/checkout@v4

- name: ccache
uses: hendrikmuhs/ccache-action@v1.2.16
with:
key: ubuntu-22-cmake-sycl
evict-old-files: 1d

- name: Build
id: cmake_build
run: |
Expand Down Expand Up @@ -479,6 +533,12 @@ jobs:
id: checkout
uses: actions/checkout@v4

- name: ccache
uses: hendrikmuhs/ccache-action@v1.2.16
with:
key: ubuntu-22-cmake-sycl-fp16
evict-old-files: 1d

- name: Build
id: cmake_build
run: |
Expand All @@ -500,6 +560,12 @@ jobs:
id: checkout
uses: actions/checkout@v4

- name: ccache
uses: hendrikmuhs/ccache-action@v1.2.16
with:
key: macOS-latest-cmake-ios
evict-old-files: 1d

- name: Dependencies
id: depends
continue-on-error: true
Expand Down Expand Up @@ -531,6 +597,12 @@ jobs:
id: checkout
uses: actions/checkout@v4

- name: ccache
uses: hendrikmuhs/ccache-action@v1.2.16
with:
key: macOS-latest-cmake-tvos
evict-old-files: 1d

- name: Dependencies
id: depends
continue-on-error: true
Expand Down Expand Up @@ -566,6 +638,12 @@ jobs:
id: checkout
uses: actions/checkout@v4

- name: ccache
uses: hendrikmuhs/ccache-action@v1.2.16
with:
key: macOS-latest-swift
evict-old-files: 1d

- name: Dependencies
id: depends
continue-on-error: true
Expand Down Expand Up @@ -607,6 +685,12 @@ jobs:
- name: Clone
uses: actions/checkout@v4

- name: ccache
uses: hendrikmuhs/ccache-action@v1.2.16
with:
key: windows-msys2
evict-old-files: 1d

- name: Setup ${{ matrix.sys }}
uses: msys2/setup-msys2@v2
with:
Expand Down Expand Up @@ -675,6 +759,12 @@ jobs:
with:
fetch-depth: 0

- name: ccache
uses: hendrikmuhs/ccache-action@v1.2.16
with:
key: windows-latest-cmake-${{ matrix.build }}
evict-old-files: 1d

- name: Clone Kompute submodule
id: clone_kompute
if: ${{ matrix.build == 'kompute-x64' }}
Expand Down Expand Up @@ -813,6 +903,8 @@ jobs:
- name: Clone
id: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install dependencies
env:
Expand All @@ -821,6 +913,12 @@ jobs:
apt update
apt install -y cmake build-essential ninja-build libgomp1 git

- name: ccache
uses: hendrikmuhs/ccache-action@v1.2.16
with:
key: ubuntu-latest-cmake-cuda
evict-old-files: 1d

- name: Build with CMake
run: |
cmake -S . -B build -G Ninja \
Expand All @@ -847,6 +945,12 @@ jobs:
with:
fetch-depth: 0

- name: Install ccache
uses: hendrikmuhs/ccache-action@v1.2.16
with:
key: ${{ github.job }}-${{ matrix.cuda }}-${{ matrix.build }}
evict-old-files: 1d

- name: Install Cuda Toolkit 11.7
if: ${{ matrix.cuda == '11.7' }}
run: |
Expand Down Expand Up @@ -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/ccache-action@v1.2
with:
key: ${{ github.job }}-${{ matrix.cuda }}-${{ matrix.build }}

- name: Install Ninja
id: install_ninja
run: |
Expand Down Expand Up @@ -987,6 +1086,12 @@ jobs:
with:
fetch-depth: 0

- name: ccache
uses: hendrikmuhs/ccache-action@v1.2.16
with:
key: windows-latest-cmake-sycl
evict-old-files: 1d

- name: Install
run: |
scripts/install-oneapi.bat $WINDOWS_BASEKIT_URL $WINDOWS_DPCPP_MKL
Expand Down Expand Up @@ -1066,9 +1171,10 @@ jobs:
& 'C:\Program Files\AMD\ROCm\*\bin\clang.exe' --version

- name: Install ccache
uses: hendrikmuhs/ccache-action@v1.2
uses: hendrikmuhs/ccache-action@v1.2.16
with:
key: ${{ github.job }}
evict-old-files: 1d

- name: Build
id: cmake_build
Expand Down Expand Up @@ -1098,6 +1204,12 @@ jobs:
with:
fetch-depth: 0

- name: ccache
uses: hendrikmuhs/ccache-action@v1.2.16
with:
key: windows-latest-cmake-hip-release
evict-old-files: 1d

- name: Install
id: depends
run: |
Expand Down Expand Up @@ -1195,6 +1307,12 @@ jobs:
- name: Clone
uses: actions/checkout@v4

- name: ccache
uses: hendrikmuhs/ccache-action@v1.2.16
with:
key: android-build
evict-old-files: 1d

- name: Set up JDK
uses: actions/setup-java@v3
with:
Expand Down Expand Up @@ -1232,6 +1350,12 @@ jobs:
with:
fetch-depth: 0

- name: ccache
uses: hendrikmuhs/ccache-action@v1.2.16
with:
key: release
evict-old-files: 1d

- name: Determine tag name
id: tag
shell: bash
Expand Down
Loading