Skip to content

Commit 952ef3c

Browse files
authored
Check NanoPB failures and restore cache if needed
1 parent 16bc28a commit 952ef3c

File tree

1 file changed

+27
-18
lines changed

1 file changed

+27
-18
lines changed

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

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,11 @@ jobs:
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
5858
- name: Download stable Nanopb
59+
id: download-nanopb
5960
continue-on-error: true
6061
run: |
6162
wget https://jpa.kapsi.fi/nanopb/download/nanopb-0.4.8.tar.gz
62-
- if: ${{ failure() }}
63+
- if: ${{ failure() || steps.download-nanopb.outcome != 'success' }}
6364
name: Restore cached nanopb
6465
id: cache-nanopb-restore
6566
uses: actions/cache/restore@v4
@@ -68,7 +69,7 @@ jobs:
6869
with:
6970
path: ./nanopb-0.4.8.tar.gz
7071
key: nanopb-0.4.8.tar.gz
71-
- if: ${{ success() }}
72+
- if: ${{ steps.download-nanopb.outcome == 'success' }}
7273
name: Save nanopb to cache
7374
id: cache-nanopb-save
7475
uses: actions/cache/save@v4
@@ -221,10 +222,11 @@ jobs:
221222
git clone --depth 1 --branch wippersnapper https://github.com/brentru/lvgl.git /home/runner/Arduino/libraries/lvgl
222223
git clone --depth 1 --branch development https://github.com/brentru/Adafruit_LvGL_Glue.git /home/runner/Arduino/libraries/Adafruit_LittlevGL_Glue_Library
223224
- name: Download stable Nanopb
225+
id: download-nanopb
224226
continue-on-error: true
225227
run: |
226228
wget https://jpa.kapsi.fi/nanopb/download/nanopb-0.4.8.tar.gz
227-
- if: ${{ failure() }}
229+
- if: ${{ failure() || steps.download-nanopb.outcome != 'success' }}
228230
name: Restore cached nanopb
229231
id: cache-nanopb-restore
230232
uses: actions/cache/restore@v4
@@ -233,7 +235,7 @@ jobs:
233235
with:
234236
path: ./nanopb-0.4.8.tar.gz
235237
key: nanopb-0.4.8.tar.gz
236-
- if: ${{ success() }}
238+
- if: ${{ steps.download-nanopb.outcome == 'success' }}
237239
name: Save nanopb to cache
238240
id: cache-nanopb-save
239241
uses: actions/cache/save@v4
@@ -320,10 +322,11 @@ jobs:
320322
git clone --quiet https://github.com/milesburton/Arduino-Temperature-Control-Library.git /home/runner/Arduino/libraries/Arduino-Temperature-Control-Library
321323
git clone --quiet https://github.com/pstolarz/OneWireNg.git /home/runner/Arduino/libraries/OneWireNg
322324
- name: Download stable Nanopb
325+
id: download-nanopb
323326
continue-on-error: true
324327
run: |
325328
wget https://jpa.kapsi.fi/nanopb/download/nanopb-0.4.8.tar.gz
326-
- if: ${{ failure() }}
329+
- if: ${{ failure() || steps.download-nanopb.outcome != 'success' }}
327330
name: Restore cached nanopb
328331
id: cache-nanopb-restore
329332
uses: actions/cache/restore@v4
@@ -332,7 +335,7 @@ jobs:
332335
with:
333336
path: ./nanopb-0.4.8.tar.gz
334337
key: nanopb-0.4.8.tar.gz
335-
- if: ${{ success() }}
338+
- if: ${{ steps.download-nanopb.outcome == 'success' }}
336339
name: Save nanopb to cache
337340
id: cache-nanopb-save
338341
uses: actions/cache/save@v4
@@ -447,10 +450,11 @@ jobs:
447450
git clone --quiet https://github.com/PaulStoffregen/OneWire.git /home/runner/Arduino/libraries/OneWire
448451
git clone --quiet https://github.com/adafruit/Adafruit_TinyUSB_Arduino /home/runner/Arduino/libraries/Adafruit_TinyUSB_Arduino
449452
- name: Download stable Nanopb
453+
id: download-nanopb
450454
continue-on-error: true
451455
run: |
452456
wget https://jpa.kapsi.fi/nanopb/download/nanopb-0.4.8.tar.gz
453-
- if: ${{ failure() }}
457+
- if: ${{ failure() || steps.download-nanopb.outcome != 'success' }}
454458
name: Restore cached nanopb
455459
id: cache-nanopb-restore
456460
uses: actions/cache/restore@v4
@@ -459,7 +463,7 @@ jobs:
459463
with:
460464
path: ./nanopb-0.4.8.tar.gz
461465
key: nanopb-0.4.8.tar.gz
462-
- if: ${{ success() }}
466+
- if: ${{ steps.download-nanopb.outcome == 'success' }}
463467
name: Save nanopb to cache
464468
id: cache-nanopb-save
465469
uses: actions/cache/save@v4
@@ -519,10 +523,11 @@ jobs:
519523
git clone --quiet https://github.com/pstolarz/Arduino-Temperature-Control-Library.git /home/runner/Arduino/libraries/Arduino-Temperature-Control-Library
520524
git clone --quiet https://github.com/adafruit/Adafruit_TinyUSB_Arduino /home/runner/Arduino/libraries/Adafruit_TinyUSB_Arduino
521525
- name: Download stable Nanopb
526+
id: download-nanopb
522527
continue-on-error: true
523528
run: |
524529
wget https://jpa.kapsi.fi/nanopb/download/nanopb-0.4.8.tar.gz
525-
- if: ${{ failure() }}
530+
- if: ${{ failure() || steps.download-nanopb.outcome != 'success' }}
526531
name: Restore cached nanopb
527532
id: cache-nanopb-restore
528533
uses: actions/cache/restore@v4
@@ -531,7 +536,7 @@ jobs:
531536
with:
532537
path: ./nanopb-0.4.8.tar.gz
533538
key: nanopb-0.4.8.tar.gz
534-
- if: ${{ success() }}
539+
- if: ${{ steps.download-nanopb.outcome == 'success' }}
535540
name: Save nanopb to cache
536541
id: cache-nanopb-save
537542
uses: actions/cache/save@v4
@@ -590,10 +595,11 @@ jobs:
590595
git clone --quiet https://github.com/milesburton/Arduino-Temperature-Control-Library.git /home/runner/Arduino/libraries/Arduino-Temperature-Control-Library
591596
git clone --quiet https://github.com/PaulStoffregen/OneWire.git /home/runner/Arduino/libraries/OneWire
592597
- name: Download stable Nanopb
598+
id: download-nanopb
593599
continue-on-error: true
594600
run: |
595601
wget https://jpa.kapsi.fi/nanopb/download/nanopb-0.4.8.tar.gz
596-
- if: ${{ failure() }}
602+
- if: ${{ failure() || steps.download-nanopb.outcome != 'success' }}
597603
name: Restore cached nanopb
598604
id: cache-nanopb-restore
599605
uses: actions/cache/restore@v4
@@ -602,7 +608,7 @@ jobs:
602608
with:
603609
path: ./nanopb-0.4.8.tar.gz
604610
key: nanopb-0.4.8.tar.gz
605-
- if: ${{ success() }}
611+
- if: ${{ steps.download-nanopb.outcome == 'success' }}
606612
name: Save nanopb to cache
607613
id: cache-nanopb-save
608614
uses: actions/cache/save@v4
@@ -649,10 +655,11 @@ jobs:
649655
git clone --quiet https://github.com/milesburton/Arduino-Temperature-Control-Library.git /home/runner/Arduino/libraries/Arduino-Temperature-Control-Library
650656
git clone --quiet https://github.com/PaulStoffregen/OneWire.git /home/runner/Arduino/libraries/OneWire
651657
- name: Download stable Nanopb
658+
id: download-nanopb
652659
continue-on-error: true
653660
run: |
654661
wget https://jpa.kapsi.fi/nanopb/download/nanopb-0.4.8.tar.gz
655-
- if: ${{ failure() }}
662+
- if: ${{ failure() || steps.download-nanopb.outcome != 'success' }}
656663
name: Restore cached nanopb
657664
id: cache-nanopb-restore
658665
uses: actions/cache/restore@v4
@@ -661,7 +668,7 @@ jobs:
661668
with:
662669
path: ./nanopb-0.4.8.tar.gz
663670
key: nanopb-0.4.8.tar.gz
664-
- if: ${{ success() }}
671+
- if: ${{ steps.download-nanopb.outcome == 'success' }}
665672
name: Save nanopb to cache
666673
id: cache-nanopb-save
667674
uses: actions/cache/save@v4
@@ -744,10 +751,11 @@ jobs:
744751
git clone --depth 1 --branch wippersnapper https://github.com/brentru/lvgl.git /home/runner/Arduino/libraries/lvgl
745752
git clone --depth 1 --branch development https://github.com/brentru/Adafruit_LvGL_Glue.git /home/runner/Arduino/libraries/Adafruit_LittlevGL_Glue_Library
746753
- name: Download stable Nanopb
754+
id: download-nanopb
747755
continue-on-error: true
748756
run: |
749757
wget https://jpa.kapsi.fi/nanopb/download/nanopb-0.4.8.tar.gz
750-
- if: ${{ failure() }}
758+
- if: ${{ failure() || steps.download-nanopb.outcome != 'success' }}
751759
name: Restore cached nanopb
752760
id: cache-nanopb-restore
753761
uses: actions/cache/restore@v4
@@ -756,7 +764,7 @@ jobs:
756764
with:
757765
path: ./nanopb-0.4.8.tar.gz
758766
key: nanopb-0.4.8.tar.gz
759-
- if: ${{ success() }}
767+
- if: ${{ steps.download-nanopb.outcome == 'success' }}
760768
name: Save nanopb to cache
761769
id: cache-nanopb-save
762770
uses: actions/cache/save@v4
@@ -836,10 +844,11 @@ jobs:
836844
git clone --quiet https://github.com/milesburton/Arduino-Temperature-Control-Library.git /home/runner/Arduino/libraries/Arduino-Temperature-Control-Library
837845
git clone --quiet https://github.com/pstolarz/OneWireNg.git /home/runner/Arduino/libraries/OneWireNg
838846
- name: Download stable Nanopb
847+
id: download-nanopb
839848
continue-on-error: true
840849
run: |
841850
wget https://jpa.kapsi.fi/nanopb/download/nanopb-0.4.8.tar.gz
842-
- if: ${{ failure() }}
851+
- if: ${{ failure() || steps.download-nanopb.outcome != 'success' }}
843852
name: Restore cached nanopb
844853
id: cache-nanopb-restore
845854
uses: actions/cache/restore@v4
@@ -848,7 +857,7 @@ jobs:
848857
with:
849858
path: ./nanopb-0.4.8.tar.gz
850859
key: nanopb-0.4.8.tar.gz
851-
- if: ${{ success() }}
860+
- if: ${{ steps.download-nanopb.outcome == 'success' }}
852861
name: Save nanopb to cache
853862
id: cache-nanopb-save
854863
uses: actions/cache/save@v4

0 commit comments

Comments
 (0)