Skip to content

Commit 68bf38d

Browse files
authored
[CI] Use os-compiler pair as a key for ccache (#257)
close #246
1 parent 9b3f1e9 commit 68bf38d

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
- name: ccache
5353
uses: hendrikmuhs/ccache-action@v1.2
5454
with:
55-
key: ${{ github.job }}
55+
key: ${{ runner.os }}-gcc
5656
create-symlink: true
5757
max-size: 1G
5858
- name: CMake configure
@@ -230,7 +230,7 @@ jobs:
230230
- name: ccache
231231
uses: hendrikmuhs/ccache-action@v1.2
232232
with:
233-
key: ${{ github.job }}
233+
key: ${{ runner.os }}-clang
234234
create-symlink: true
235235
max-size: 1G
236236
- name: CMake configure
@@ -310,7 +310,7 @@ jobs:
310310
- name: ccache
311311
uses: hendrikmuhs/ccache-action@v1.2
312312
with:
313-
key: ${{ github.job }}
313+
key: ${{ runner.os }}-clang
314314
create-symlink: true
315315
max-size: 1G
316316
- name: CMake configure
@@ -381,7 +381,7 @@ jobs:
381381
- name: ccache
382382
uses: hendrikmuhs/ccache-action@v1.2
383383
with:
384-
key: ${{ github.job }}
384+
key: ${{ runner.os }}-clang
385385
create-symlink: true
386386
max-size: 1G
387387
- name: CMake configure
@@ -458,7 +458,7 @@ jobs:
458458
- name: ccache
459459
uses: hendrikmuhs/ccache-action@v1.2
460460
with:
461-
key: ${{ github.job }}
461+
key: ${{ runner.os }}-clang
462462
create-symlink: true
463463
max-size: 1G
464464
- name: CMake configure
@@ -537,7 +537,7 @@ jobs:
537537
- name: ccache
538538
uses: hendrikmuhs/ccache-action@v1.2
539539
with:
540-
key: ${{ github.job }}
540+
key: ${{ runner.os }}-clang
541541
create-symlink: true
542542
max-size: 1G
543543
- name: CMake configure
@@ -609,7 +609,7 @@ jobs:
609609
- name: ccache
610610
uses: hendrikmuhs/ccache-action@v1.2
611611
with:
612-
key: ${{ github.job }}
612+
key: ${{ runner.os }}-clang
613613
create-symlink: true
614614
max-size: 1G
615615
- name: CMake configure
@@ -938,7 +938,7 @@ jobs:
938938
- name: ccache
939939
uses: hendrikmuhs/ccache-action@v1.2
940940
with:
941-
key: ${{ github.job }}
941+
key: ${{ runner.os }}-gcc
942942
create-symlink: true
943943
max-size: 1G
944944
- name: CMake configure
@@ -1025,7 +1025,7 @@ jobs:
10251025
- name: ccache
10261026
uses: hendrikmuhs/ccache-action@v1.2
10271027
with:
1028-
key: ${{ github.job }}
1028+
key: ${{ runner.os }}-gcc
10291029
create-symlink: true
10301030
max-size: 1G
10311031
- name: CMake configure

.github/workflows/static-analysis-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: ccache
1717
uses: hendrikmuhs/ccache-action@v1.2
1818
with:
19-
key: ${{ github.job }}
19+
key: ${{ runner.os }}-clang
2020
- uses: ZedThree/clang-tidy-review@v0.20.1
2121
id: review
2222
with:
@@ -44,7 +44,7 @@ jobs:
4444
- name: ccache
4545
uses: hendrikmuhs/ccache-action@v1.2
4646
with:
47-
key: ${{ github.job }}
47+
key: ${{ runner.os }}-gcc
4848
- uses: ZedThree/clang-tidy-review@v0.20.1
4949
id: review
5050
with:

0 commit comments

Comments
 (0)