Skip to content

Commit d0491ce

Browse files
author
Olivier Chafik
committed
on containers, install ccache after apt-get (+ dedupe existing ccache steps)
1 parent b373f8c commit d0491ce

File tree

1 file changed

+22
-32
lines changed

1 file changed

+22
-32
lines changed

.github/workflows/build.yml

Lines changed: 22 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -394,18 +394,18 @@ jobs:
394394
id: checkout
395395
uses: actions/checkout@v4
396396

397-
- name: ccache
398-
uses: hendrikmuhs/[email protected]
399-
with:
400-
key: ubuntu-22-cmake-hip
401-
evict-old-files: 1d
402-
403397
- name: Dependencies
404398
id: depends
405399
run: |
406400
sudo apt-get update
407401
sudo apt-get install -y build-essential git cmake rocblas-dev hipblas-dev
408402
403+
- name: ccache
404+
uses: hendrikmuhs/[email protected]
405+
with:
406+
key: ubuntu-22-cmake-hip
407+
evict-old-files: 1d
408+
409409
- name: Build with native CMake HIP support
410410
id: cmake_build
411411
run: |
@@ -432,18 +432,18 @@ jobs:
432432
id: checkout
433433
uses: actions/checkout@v4
434434

435-
- name: ccache
436-
uses: hendrikmuhs/[email protected]
437-
with:
438-
key: ubuntu-22-cmake-musa
439-
evict-old-files: 1d
440-
441435
- name: Dependencies
442436
id: depends
443437
run: |
444438
apt-get update
445439
apt-get install -y build-essential git cmake libcurl4-openssl-dev
446440
441+
- name: ccache
442+
uses: hendrikmuhs/[email protected]
443+
with:
444+
key: ubuntu-22-cmake-musa
445+
evict-old-files: 1d
446+
447447
- name: Build with native CMake MUSA support
448448
id: cmake_build
449449
run: |
@@ -906,19 +906,19 @@ jobs:
906906
with:
907907
fetch-depth: 0
908908

909-
- name: ccache
910-
uses: hendrikmuhs/[email protected]
911-
with:
912-
key: ubuntu-latest-cmake-cuda
913-
evict-old-files: 1d
914-
915909
- name: Install dependencies
916910
env:
917911
DEBIAN_FRONTEND: noninteractive
918912
run: |
919913
apt update
920914
apt install -y cmake build-essential ninja-build libgomp1 git
921915
916+
- name: ccache
917+
uses: hendrikmuhs/[email protected]
918+
with:
919+
key: ubuntu-latest-cmake-cuda
920+
evict-old-files: 1d
921+
922922
- name: Build with CMake
923923
run: |
924924
cmake -S . -B build -G Ninja \
@@ -945,10 +945,10 @@ jobs:
945945
with:
946946
fetch-depth: 0
947947

948-
- name: ccache
948+
- name: Install ccache
949949
uses: hendrikmuhs/[email protected]
950950
with:
951-
key: windows-2019-cmake-cuda-${{ matrix.cuda }}
951+
key: ${{ github.job }}-${{ matrix.cuda }}-${{ matrix.build }}
952952
evict-old-files: 1d
953953

954954
- name: Install Cuda Toolkit 11.7
@@ -1007,11 +1007,6 @@ jobs:
10071007
echo "CUDA_PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8
10081008
echo "CUDA_PATH_V12_4=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8
10091009
1010-
- name: Install ccache
1011-
uses: hendrikmuhs/[email protected]
1012-
with:
1013-
key: ${{ github.job }}-${{ matrix.cuda }}-${{ matrix.build }}
1014-
10151010
- name: Install Ninja
10161011
id: install_ninja
10171012
run: |
@@ -1160,12 +1155,6 @@ jobs:
11601155
id: checkout
11611156
uses: actions/checkout@v4
11621157

1163-
- name: ccache
1164-
uses: hendrikmuhs/[email protected]
1165-
with:
1166-
key: windows-latest-cmake-hip
1167-
evict-old-files: 1d
1168-
11691158
- name: Install
11701159
id: depends
11711160
run: |
@@ -1182,9 +1171,10 @@ jobs:
11821171
& 'C:\Program Files\AMD\ROCm\*\bin\clang.exe' --version
11831172
11841173
- name: Install ccache
1185-
uses: hendrikmuhs/[email protected]
1174+
uses: hendrikmuhs/[email protected].16
11861175
with:
11871176
key: ${{ github.job }}
1177+
evict-old-files: 1d
11881178

11891179
- name: Build
11901180
id: cmake_build

0 commit comments

Comments
 (0)