Skip to content

Commit 661105e

Browse files
committed
cache/restore where possible.
1 parent 3f69a7c commit 661105e

1 file changed

Lines changed: 28 additions & 28 deletions

File tree

.github/workflows/ci.yml

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ jobs:
7676
path: ${{ env.cvtpcre }}
7777
key: cvtpcre-bmake-${{ matrix.os }}-gcc-DEBUG-AUSAN-${{ github.sha }}-${{ env.pcre2 }}
7878

79-
- name: Fetch build
79+
- name: Restore build
8080
if: steps.cache-cvtpcre.outputs.cache-hit != 'true'
81-
uses: actions/cache@v5
81+
uses: actions/cache/restore@v5
8282
id: cache-build
8383
with:
8484
path: ${{ env.build }}
@@ -158,8 +158,8 @@ jobs:
158158
cc: gcc # -fsanitize=fuzzer is clang-only
159159

160160
steps:
161-
- name: Fetch checkout
162-
uses: actions/cache@v5
161+
- name: Restore checkout
162+
uses: actions/cache/restore@v5
163163
id: cache-checkout
164164
with:
165165
path: ${{ env.wc }}
@@ -237,8 +237,8 @@ jobs:
237237
make: pmake # not packaged
238238

239239
steps:
240-
- name: Fetch checkout
241-
uses: actions/cache@v5
240+
- name: Restore checkout
241+
uses: actions/cache/restore@v5
242242
id: cache-checkout
243243
with:
244244
path: ${{ env.wc }}
@@ -250,8 +250,8 @@ jobs:
250250
# Some combinations of our options (pmake, EXPENSIVE_CHECKS, whatever)
251251
# won't exist in cache because we didn't build those. That's okay for
252252
# the purposes of this step, building those is harmless.
253-
- name: Fetch build
254-
uses: actions/cache@v5
253+
- name: Restore build
254+
uses: actions/cache/restore@v5
255255
id: cache-build
256256
with:
257257
path: ${{ env.build }}
@@ -332,8 +332,8 @@ jobs:
332332
san: MSAN # not supported
333333

334334
steps:
335-
- name: Fetch checkout
336-
uses: actions/cache@v5
335+
- name: Restore checkout
336+
uses: actions/cache/restore@v5
337337
id: cache-checkout
338338
with:
339339
path: ${{ env.wc }}
@@ -355,8 +355,8 @@ jobs:
355355
brew install bmake pcre
356356
${{ matrix.cc }} --version
357357
358-
- name: Fetch build
359-
uses: actions/cache@v5
358+
- name: Restore build
359+
uses: actions/cache/restore@v5
360360
id: cache-build
361361
with:
362362
path: ${{ env.build }}
@@ -393,8 +393,8 @@ jobs:
393393
cc: gcc # it's clang anyway
394394

395395
steps:
396-
- name: Fetch checkout
397-
uses: actions/cache@v5
396+
- name: Restore checkout
397+
uses: actions/cache/restore@v5
398398
id: cache-checkout
399399
with:
400400
path: ${{ env.wc }}
@@ -416,8 +416,8 @@ jobs:
416416
brew install bmake
417417
${{ matrix.cc }} --version
418418
419-
- name: Fetch build
420-
uses: actions/cache@v5
419+
- name: Restore build
420+
uses: actions/cache/restore@v5
421421
id: cache-build
422422
with:
423423
path: ${{ env.build }}
@@ -527,8 +527,8 @@ jobs:
527527
sudo apt-get install golang
528528
go version
529529
530-
- name: Fetch build
531-
uses: actions/cache@v5
530+
- name: Restore build
531+
uses: actions/cache/restore@v5
532532
id: cache-build
533533
with:
534534
path: ${{ env.build }}
@@ -568,9 +568,9 @@ jobs:
568568
sudo apt-get update
569569
sudo apt-get install bmake libxml2-utils xsltproc docbook-xml docbook-xsl
570570
571-
- name: Fetch checkout
571+
- name: Restore checkout
572572
if: steps.cache-docs.outputs.cache-hit != 'true'
573-
uses: actions/cache@v5
573+
uses: actions/cache/restore@v5
574574
id: cache-checkout
575575
with:
576576
path: ${{ env.wc }}
@@ -623,27 +623,27 @@ jobs:
623623
uname -a
624624
sudo apt-get install bmake
625625
626-
- name: Fetch checkout
626+
- name: Restore checkout
627627
if: steps.cache-prefix.outputs.cache-hit != 'true'
628-
uses: actions/cache@v5
628+
uses: actions/cache/restore@v5
629629
id: cache-checkout
630630
with:
631631
path: ${{ env.wc }}
632632
key: checkout-${{ github.sha }}
633633
fail-on-cache-miss: true
634634

635-
- name: Fetch build
635+
- name: Restore build
636636
if: steps.cache-prefix.outputs.cache-hit != 'true'
637-
uses: actions/cache@v5
637+
uses: actions/cache/restore@v5
638638
id: cache-build
639639
with:
640640
path: ${{ env.build }}
641641
key: build-${{ env.make }}-${{ env.os }}-${{ env.cc }}-${{ env.debug }}-${{ env.san }}-${{ github.sha }}
642642
fail-on-cache-miss: true
643643

644-
- name: Fetch docs
644+
- name: Restore docs
645645
if: steps.cache-prefix.outputs.cache-hit != 'true'
646-
uses: actions/cache@v5
646+
uses: actions/cache/restore@v5
647647
id: cache-docs
648648
with:
649649
path: ${{ env.build }}
@@ -687,8 +687,8 @@ jobs:
687687
sudo gem install --no-document fpm
688688
fpm -v
689689
690-
- name: Fetch prefix
691-
uses: actions/cache@v5
690+
- name: Restore prefix
691+
uses: actions/cache/restore@v5
692692
id: cache-prefix
693693
with:
694694
path: ${{ env.prefix }}

0 commit comments

Comments
 (0)