Skip to content

Commit 5d80c9b

Browse files
committed
GitHub cache action: use new save-always flag
PRs may (initially) see test failures, but subsequent builds should still benefit from the incrementally constructed (c)cache. This is newly available with version 4 of the cache action.
1 parent ebf52f9 commit 5d80c9b

7 files changed

+27
-0
lines changed

.github/workflows/bsd.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
- name: Prepare ccache
1717
uses: actions/cache@v4
1818
with:
19+
save-always: true
1920
path: .ccache
2021
key: freebsd-13.2-gmake-${{ github.ref }}-${{ github.sha }}-PR
2122
restore-keys: |
@@ -77,6 +78,7 @@ jobs:
7778
- name: Prepare ccache
7879
uses: actions/cache@v4
7980
with:
81+
save-always: true
8082
path: .ccache
8183
key: openbsd-7.4-gmake-${{ github.ref }}-${{ github.sha }}-PR
8284
restore-keys: |
@@ -138,6 +140,7 @@ jobs:
138140
- name: Prepare ccache
139141
uses: actions/cache@v4
140142
with:
143+
save-always: true
141144
path: .ccache
142145
key: netbsd-9.3-gmake-${{ github.ref }}-${{ github.sha }}-PR
143146
restore-keys: |

.github/workflows/build-and-test-Linux.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
- name: Prepare ccache
2828
uses: actions/cache@v4
2929
with:
30+
save-always: true
3031
path: .ccache
3132
key: ${{ runner.os }}-20.04-make-clang-${{ github.ref }}-${{ github.sha }}-KERNEL
3233
restore-keys: |

.github/workflows/build-and-test-Xen.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
- name: Prepare ccache
2727
uses: actions/cache@v4
2828
with:
29+
save-always: true
2930
path: .ccache
3031
key: ${{ runner.os }}-20.04-make-clang-${{ github.ref }}-${{ github.sha }}-XEN
3132
restore-keys: |

.github/workflows/csmith.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
- name: Prepare ccache
2626
uses: actions/cache@v4
2727
with:
28+
save-always: true
2829
path: .ccache
2930
key: ${{ runner.os }}-20.04-make-clang-${{ github.ref }}-${{ github.sha }}-CSMITH
3031
restore-keys: |

.github/workflows/pull-request-check-rust-api.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
- name: Prepare ccache
3636
uses: actions/cache@v4
3737
with:
38+
save-always: true
3839
path: .ccache
3940
key: ${{ runner.os }}-22.04-cmake-clang-${{ github.ref }}-${{ github.sha }}-PR
4041
restore-keys: |
@@ -81,6 +82,7 @@ jobs:
8182
- name: Prepare ccache
8283
uses: actions/cache@v4
8384
with:
85+
save-always: true
8486
path: .ccache
8587
key: ${{ runner.os }}-Release-Minisat-${{ github.ref }}-${{ github.sha }}-PR-Rust-API
8688
restore-keys: |

.github/workflows/pull-request-checks.yaml

+16
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
- name: Prepare ccache
3535
uses: actions/cache@v4
3636
with:
37+
save-always: true
3738
path: .ccache
3839
key: ${{ runner.os }}-20.04-make-${{ github.ref }}-${{ github.sha }}-PR
3940
restore-keys: |
@@ -119,6 +120,7 @@ jobs:
119120
- name: Prepare ccache
120121
uses: actions/cache@v4
121122
with:
123+
save-always: true
122124
path: .ccache
123125
key: ${{ runner.os }}-20.04-make-clang-${{ github.ref }}-${{ github.sha }}-PR
124126
restore-keys: |
@@ -183,6 +185,7 @@ jobs:
183185
- name: Prepare ccache
184186
uses: actions/cache@v4
185187
with:
188+
save-always: true
186189
path: .ccache
187190
key: ${{ runner.os }}-20.04-make-clang-${{ github.ref }}-${{ github.sha }}-PR
188191
restore-keys: |
@@ -227,6 +230,7 @@ jobs:
227230
- name: Prepare ccache
228231
uses: actions/cache@v4
229232
with:
233+
save-always: true
230234
path: .ccache
231235
key: ${{ runner.os }}-20.04-Release-${{ github.ref }}-${{ github.sha }}-PR
232236
restore-keys: |
@@ -298,6 +302,7 @@ jobs:
298302
- name: Prepare ccache
299303
uses: actions/cache@v4
300304
with:
305+
save-always: true
301306
path: .ccache
302307
key: ${{ runner.os }}-22.04-make-clang-${{ github.ref }}-${{ github.sha }}-PR
303308
restore-keys: |
@@ -363,6 +368,7 @@ jobs:
363368
- name: Prepare ccache
364369
uses: actions/cache@v4
365370
with:
371+
save-always: true
366372
path: .ccache
367373
key: ${{ runner.os }}-22.04-Release-${{ github.ref }}-${{ github.sha }}-PR
368374
restore-keys: |
@@ -422,6 +428,7 @@ jobs:
422428
- name: Prepare ccache
423429
uses: actions/cache@v4
424430
with:
431+
save-always: true
425432
path: .ccache
426433
key: ${{ runner.os }}-22.04-Release-gcc-13-${{ github.ref }}-${{ github.sha }}-PR
427434
restore-keys: |
@@ -468,6 +475,7 @@ jobs:
468475
- name: Prepare ccache
469476
uses: actions/cache@v4
470477
with:
478+
save-always: true
471479
path: .ccache
472480
key: ${{ runner.os }}-22.04-Release-32-${{ github.ref }}-${{ github.sha }}-PR
473481
restore-keys: |
@@ -506,6 +514,7 @@ jobs:
506514
- name: Prepare ccache
507515
uses: actions/cache@v4
508516
with:
517+
save-always: true
509518
path: .ccache
510519
key: ${{ runner.os }}-20.04-Release-${{ github.ref }}-${{ github.sha }}-PR
511520
restore-keys: |
@@ -552,6 +561,7 @@ jobs:
552561
- name: Prepare ccache
553562
uses: actions/cache@v4
554563
with:
564+
save-always: true
555565
path: .ccache
556566
key: ${{ runner.os }}-20.04-Release-${{ github.ref }}-${{ github.sha }}-PR
557567
restore-keys: |
@@ -592,6 +602,7 @@ jobs:
592602
- name: Prepare ccache
593603
uses: actions/cache@v4
594604
with:
605+
save-always: true
595606
path: .ccache
596607
key: ${{ runner.os }}-make-${{ github.ref }}-${{ github.sha }}-PR
597608
restore-keys: |
@@ -643,6 +654,7 @@ jobs:
643654
- name: Prepare ccache
644655
uses: actions/cache@v4
645656
with:
657+
save-always: true
646658
path: .ccache
647659
key: ${{ runner.os }}-Release-Glucose-${{ github.ref }}-${{ github.sha }}-PR
648660
restore-keys: |
@@ -700,6 +712,7 @@ jobs:
700712
- name: Prepare ccache
701713
uses: actions/cache@v4
702714
with:
715+
save-always: true
703716
path: .ccache
704717
key: ${{ runner.os }}-msbuild-${{ github.ref }}-${{ github.sha }}-PR
705718
restore-keys: |
@@ -758,6 +771,7 @@ jobs:
758771
- name: Prepare ccache
759772
uses: actions/cache@v4
760773
with:
774+
save-always: true
761775
path: .ccache
762776
key: ${{ runner.os }}-msbuild-make-${{ github.ref }}-${{ github.sha }}-PR
763777
restore-keys: |
@@ -813,6 +827,7 @@ jobs:
813827
- name: Prepare ccache
814828
uses: actions/cache@v4
815829
with:
830+
save-always: true
816831
path: .ccache
817832
key: ${{ runner.os }}-msbuild-${{ github.ref }}-${{ github.sha }}-PKG
818833
restore-keys: |
@@ -930,6 +945,7 @@ jobs:
930945
- name: Prepare ccache
931946
uses: actions/cache@v4
932947
with:
948+
save-always: true
933949
path: .ccache
934950
key: ${{ runner.os }}-20.04-Coverage-${{ github.ref }}-${{ github.sha }}-PR
935951
restore-keys: |

.github/workflows/release-packages.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
- name: Prepare ccache
3030
uses: actions/cache@v4
3131
with:
32+
save-always: true
3233
path: .ccache
3334
key: ${{ runner.os }}-22.04-Release-${{ github.ref }}-${{ github.sha }}-RELEASEPKG
3435
restore-keys:
@@ -99,6 +100,7 @@ jobs:
99100
- name: Prepare ccache
100101
uses: actions/cache@v4
101102
with:
103+
save-always: true
102104
path: .ccache
103105
key: ${{ runner.os }}-20.04-Release-${{ github.ref }}-${{ github.sha }}-RELEASEPKG
104106
restore-keys: |
@@ -201,6 +203,7 @@ jobs:
201203
- name: Prepare ccache
202204
uses: actions/cache@v4
203205
with:
206+
save-always: true
204207
path: .ccache
205208
key: ${{ runner.os }}-msbuild-${{ github.ref }}-${{ github.sha }}-RELEASEPKG
206209
restore-keys: |

0 commit comments

Comments
 (0)