Skip to content

Commit 0760b45

Browse files
committed
Add caching for nanopb
1 parent 7b41927 commit 0760b45

File tree

1 file changed

+108
-18
lines changed

1 file changed

+108
-18
lines changed

.github/workflows/build-clang-doxy.yml

Lines changed: 108 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,20 @@ jobs:
5555
git clone --quiet https://github.com/adafruit/Adafruit_TinyUSB_Arduino /home/runner/Arduino/libraries/Adafruit_TinyUSB_Arduino
5656
git clone --depth 1 --branch wippersnapper https://github.com/brentru/lvgl.git /home/runner/Arduino/libraries/lvgl
5757
git clone --depth 1 --branch development https://github.com/brentru/Adafruit_LvGL_Glue.git /home/runner/Arduino/libraries/Adafruit_LittlevGL_Glue_Library
58-
- name: Download and install stable Nanopb
58+
- name: Cache nanopb
59+
id: cache-nanopb
60+
uses: actions/cache@v3
61+
env:
62+
cache-name: cache-node-modules
63+
with:
64+
path: ./nanopb-0.4.8.tar.gz
65+
key: nanopb-0.4.8.tar.gz
66+
- if: ${{ steps.cache-nanopb.outputs.cache-hit != 'true' }}
67+
name: Download stable Nanopb
5968
run: |
60-
# Download and extract nanopb
6169
wget https://jpa.kapsi.fi/nanopb/download/nanopb-0.4.8.tar.gz
70+
- name: Install stable Nanopb
71+
run: |
6272
tar -xf nanopb-0.4.8.tar.gz
6373
# Copy files to WipperSnapper's src/nanopb directory
6474
cp nanopb/pb_common.* nanopb/pb_encode.* nanopb/pb_decode.* src/nanopb
@@ -199,10 +209,20 @@ jobs:
199209
git clone --quiet https://github.com/adafruit/Adafruit_TinyUSB_Arduino /home/runner/Arduino/libraries/Adafruit_TinyUSB_Arduino
200210
git clone --depth 1 --branch wippersnapper https://github.com/brentru/lvgl.git /home/runner/Arduino/libraries/lvgl
201211
git clone --depth 1 --branch development https://github.com/brentru/Adafruit_LvGL_Glue.git /home/runner/Arduino/libraries/Adafruit_LittlevGL_Glue_Library
202-
- name: Download and install stable Nanopb
212+
- name: Cache nanopb
213+
id: cache-nanopb
214+
uses: actions/cache@v3
215+
env:
216+
cache-name: cache-node-modules
217+
with:
218+
path: ./nanopb-0.4.8.tar.gz
219+
key: nanopb-0.4.8.tar.gz
220+
- if: ${{ steps.cache-nanopb.outputs.cache-hit != 'true' }}
221+
name: Download stable Nanopb
203222
run: |
204-
# Download and extract nanopb
205223
wget https://jpa.kapsi.fi/nanopb/download/nanopb-0.4.8.tar.gz
224+
- name: Install stable Nanopb
225+
run: |
206226
tar -xf nanopb-0.4.8.tar.gz
207227
# Copy files to WipperSnapper's src/nanopb directory
208228
cp nanopb/pb_common.* nanopb/pb_encode.* nanopb/pb_decode.* src/nanopb
@@ -278,10 +298,20 @@ jobs:
278298
run: |
279299
git clone --quiet https://github.com/milesburton/Arduino-Temperature-Control-Library.git /home/runner/Arduino/libraries/Arduino-Temperature-Control-Library
280300
git clone --quiet https://github.com/pstolarz/OneWireNg.git /home/runner/Arduino/libraries/OneWireNg
281-
- name: Download and install stable Nanopb
301+
- name: Cache nanopb
302+
id: cache-nanopb
303+
uses: actions/cache@v3
304+
env:
305+
cache-name: cache-node-modules
306+
with:
307+
path: ./nanopb-0.4.8.tar.gz
308+
key: nanopb-0.4.8.tar.gz
309+
- if: ${{ steps.cache-nanopb.outputs.cache-hit != 'true' }}
310+
name: Download stable Nanopb
282311
run: |
283-
# Download and extract nanopb
284312
wget https://jpa.kapsi.fi/nanopb/download/nanopb-0.4.8.tar.gz
313+
- name: Install stable Nanopb
314+
run: |
285315
tar -xf nanopb-0.4.8.tar.gz
286316
# Copy files to WipperSnapper's src/nanopb directory
287317
cp nanopb/pb_common.* nanopb/pb_encode.* nanopb/pb_decode.* src/nanopb
@@ -385,10 +415,20 @@ jobs:
385415
git clone --quiet https://github.com/milesburton/Arduino-Temperature-Control-Library.git /home/runner/Arduino/libraries/Arduino-Temperature-Control-Library
386416
git clone --quiet https://github.com/PaulStoffregen/OneWire.git /home/runner/Arduino/libraries/OneWire
387417
git clone --quiet https://github.com/adafruit/Adafruit_TinyUSB_Arduino /home/runner/Arduino/libraries/Adafruit_TinyUSB_Arduino
388-
- name: Download and install stable Nanopb
418+
- name: Cache nanopb
419+
id: cache-nanopb
420+
uses: actions/cache@v3
421+
env:
422+
cache-name: cache-node-modules
423+
with:
424+
path: ./nanopb-0.4.8.tar.gz
425+
key: nanopb-0.4.8.tar.gz
426+
- if: ${{ steps.cache-nanopb.outputs.cache-hit != 'true' }}
427+
name: Download stable Nanopb
389428
run: |
390-
# Download and extract nanopb
391429
wget https://jpa.kapsi.fi/nanopb/download/nanopb-0.4.8.tar.gz
430+
- name: Install stable Nanopb
431+
run: |
392432
tar -xf nanopb-0.4.8.tar.gz
393433
# Copy files to WipperSnapper's src/nanopb directory
394434
cp nanopb/pb_common.* nanopb/pb_encode.* nanopb/pb_decode.* src/nanopb
@@ -437,10 +477,20 @@ jobs:
437477
git clone --quiet https://github.com/pstolarz/OneWireNg.git /home/runner/Arduino/libraries/OneWireNg
438478
git clone --quiet https://github.com/pstolarz/Arduino-Temperature-Control-Library.git /home/runner/Arduino/libraries/Arduino-Temperature-Control-Library
439479
git clone --quiet https://github.com/adafruit/Adafruit_TinyUSB_Arduino /home/runner/Arduino/libraries/Adafruit_TinyUSB_Arduino
440-
- name: Download and install stable Nanopb
480+
- name: Cache nanopb
481+
id: cache-nanopb
482+
uses: actions/cache@v3
483+
env:
484+
cache-name: cache-node-modules
485+
with:
486+
path: ./nanopb-0.4.8.tar.gz
487+
key: nanopb-0.4.8.tar.gz
488+
- if: ${{ steps.cache-nanopb.outputs.cache-hit != 'true' }}
489+
name: Download stable Nanopb
441490
run: |
442-
# Download and extract nanopb
443491
wget https://jpa.kapsi.fi/nanopb/download/nanopb-0.4.8.tar.gz
492+
- name: Install stable Nanopb
493+
run: |
444494
tar -xf nanopb-0.4.8.tar.gz
445495
# Copy files to WipperSnapper's src/nanopb directory
446496
cp nanopb/pb_common.* nanopb/pb_encode.* nanopb/pb_decode.* src/nanopb
@@ -488,10 +538,20 @@ jobs:
488538
git clone --quiet https://github.com/arduino-libraries/Servo.git /home/runner/Arduino/libraries/Servo
489539
git clone --quiet https://github.com/milesburton/Arduino-Temperature-Control-Library.git /home/runner/Arduino/libraries/Arduino-Temperature-Control-Library
490540
git clone --quiet https://github.com/PaulStoffregen/OneWire.git /home/runner/Arduino/libraries/OneWire
491-
- name: Download and install stable Nanopb
541+
- name: Cache nanopb
542+
id: cache-nanopb
543+
uses: actions/cache@v3
544+
env:
545+
cache-name: cache-node-modules
546+
with:
547+
path: ./nanopb-0.4.8.tar.gz
548+
key: nanopb-0.4.8.tar.gz
549+
- if: ${{ steps.cache-nanopb.outputs.cache-hit != 'true' }}
550+
name: Download stable Nanopb
492551
run: |
493-
# Download and extract nanopb
494552
wget https://jpa.kapsi.fi/nanopb/download/nanopb-0.4.8.tar.gz
553+
- name: Install stable Nanopb
554+
run: |
495555
tar -xf nanopb-0.4.8.tar.gz
496556
# Copy files to WipperSnapper's src/nanopb directory
497557
cp nanopb/pb_common.* nanopb/pb_encode.* nanopb/pb_decode.* src/nanopb
@@ -527,10 +587,20 @@ jobs:
527587
run: |
528588
git clone --quiet https://github.com/milesburton/Arduino-Temperature-Control-Library.git /home/runner/Arduino/libraries/Arduino-Temperature-Control-Library
529589
git clone --quiet https://github.com/PaulStoffregen/OneWire.git /home/runner/Arduino/libraries/OneWire
530-
- name: Download and install stable Nanopb
590+
- name: Cache nanopb
591+
id: cache-nanopb
592+
uses: actions/cache@v3
593+
env:
594+
cache-name: cache-node-modules
595+
with:
596+
path: ./nanopb-0.4.8.tar.gz
597+
key: nanopb-0.4.8.tar.gz
598+
- if: ${{ steps.cache-nanopb.outputs.cache-hit != 'true' }}
599+
name: Download stable Nanopb
531600
run: |
532-
# Download and extract nanopb
533601
wget https://jpa.kapsi.fi/nanopb/download/nanopb-0.4.8.tar.gz
602+
- name: Install stable Nanopb
603+
run: |
534604
tar -xf nanopb-0.4.8.tar.gz
535605
# Copy files to WipperSnapper's src/nanopb directory
536606
cp nanopb/pb_common.* nanopb/pb_encode.* nanopb/pb_decode.* src/nanopb
@@ -600,10 +670,20 @@ jobs:
600670
git clone --quiet https://github.com/adafruit/Adafruit_TinyUSB_Arduino /home/runner/Arduino/libraries/Adafruit_TinyUSB_Arduino
601671
git clone --depth 1 --branch wippersnapper https://github.com/brentru/lvgl.git /home/runner/Arduino/libraries/lvgl
602672
git clone --depth 1 --branch development https://github.com/brentru/Adafruit_LvGL_Glue.git /home/runner/Arduino/libraries/Adafruit_LittlevGL_Glue_Library
603-
- name: Download and install stable Nanopb
673+
- name: Cache nanopb
674+
id: cache-nanopb
675+
uses: actions/cache@v3
676+
env:
677+
cache-name: cache-node-modules
678+
with:
679+
path: ./nanopb-0.4.8.tar.gz
680+
key: nanopb-0.4.8.tar.gz
681+
- if: ${{ steps.cache-nanopb.outputs.cache-hit != 'true' }}
682+
name: Download stable Nanopb
604683
run: |
605-
# Download and extract nanopb
606684
wget https://jpa.kapsi.fi/nanopb/download/nanopb-0.4.8.tar.gz
685+
- name: Install stable Nanopb
686+
run: |
607687
tar -xf nanopb-0.4.8.tar.gz
608688
# Copy files to WipperSnapper's src/nanopb directory
609689
cp nanopb/pb_common.* nanopb/pb_encode.* nanopb/pb_decode.* src/nanopb
@@ -672,10 +752,20 @@ jobs:
672752
run: |
673753
git clone --quiet https://github.com/milesburton/Arduino-Temperature-Control-Library.git /home/runner/Arduino/libraries/Arduino-Temperature-Control-Library
674754
git clone --quiet https://github.com/pstolarz/OneWireNg.git /home/runner/Arduino/libraries/OneWireNg
675-
- name: Download and install stable Nanopb
755+
- name: Cache nanopb
756+
id: cache-nanopb
757+
uses: actions/cache@v3
758+
env:
759+
cache-name: cache-node-modules
760+
with:
761+
path: ./nanopb-0.4.8.tar.gz
762+
key: nanopb-0.4.8.tar.gz
763+
- if: ${{ steps.cache-nanopb.outputs.cache-hit != 'true' }}
764+
name: Download stable Nanopb
676765
run: |
677-
# Download and extract nanopb
678766
wget https://jpa.kapsi.fi/nanopb/download/nanopb-0.4.8.tar.gz
767+
- name: Install stable Nanopb
768+
run: |
679769
tar -xf nanopb-0.4.8.tar.gz
680770
# Copy files to WipperSnapper's src/nanopb directory
681771
cp nanopb/pb_common.* nanopb/pb_encode.* nanopb/pb_decode.* src/nanopb

0 commit comments

Comments
 (0)