|
55 | 55 | - uses: actions/checkout@v4
|
56 | 56 | - name: Get WipperSnapper version
|
57 | 57 | run: |
|
58 |
| - git fetch --prune --unshallow --tags |
59 |
| - git describe --dirty --tags |
60 |
| - echo >>$GITHUB_ENV WS_VERSION=$(git describe --dirty --tags) |
| 58 | + git remote add adafruit https://github.com/adafruit/Adafruit_Wippersnapper_Arduino.git || true |
| 59 | + git fetch --prune --unshallow --all --tags |
| 60 | + WS_VERSION="unknown" |
| 61 | + if git describe --dirty --tags >/dev/null 2>&1; then |
| 62 | + WS_VERSION=$(git describe --dirty --tags) |
| 63 | + echo >>$GITHUB_ENV WS_VERSION=$(git describe --dirty --tags) |
| 64 | + else |
| 65 | + # Fallback for forks: 1.0.0-{owner}-{short-sha} |
| 66 | + REPO_OWNER=$(echo $GITHUB_REPOSITORY | cut -d'/' -f1) |
| 67 | + SHORT_SHA=$(git rev-parse --short HEAD) |
| 68 | + WS_VERSION="1.0.0-${REPO_OWNER}-${SHORT_SHA}" |
| 69 | + echo >>$GITHUB_ENV WS_VERSION="1.0.0-${REPO_OWNER}-${SHORT_SHA}" |
| 70 | + fi |
| 71 | + echo "WS_VERSION: $WS_VERSION" |
61 | 72 | - uses: actions/checkout@v4
|
62 | 73 | with:
|
63 | 74 | repository: adafruit/ci-arduino
|
@@ -264,9 +275,17 @@ jobs:
|
264 | 275 | - uses: actions/checkout@v4
|
265 | 276 | - name: Get WipperSnapper version
|
266 | 277 | run: |
|
267 |
| - git fetch --prune --unshallow --tags |
268 |
| - git describe --dirty --tags |
269 |
| - echo >>$GITHUB_ENV WS_VERSION=$(git describe --dirty --tags) |
| 278 | + git remote add adafruit https://github.com/adafruit/Adafruit_Wippersnapper_Arduino.git || true |
| 279 | + git fetch --prune --unshallow --all --tags |
| 280 | + if git describe --dirty --tags >/dev/null 2>&1; then |
| 281 | + echo >>$GITHUB_ENV WS_VERSION=$(git describe --dirty --tags) |
| 282 | + else |
| 283 | + # Fallback for forks: 1.0.0-{owner}-{short-sha} |
| 284 | + REPO_OWNER=$(echo $GITHUB_REPOSITORY | cut -d'/' -f1) |
| 285 | + SHORT_SHA=$(git rev-parse --short HEAD) |
| 286 | + echo >>$GITHUB_ENV WS_VERSION="1.0.0-${REPO_OWNER}-${SHORT_SHA}" |
| 287 | + fi |
| 288 | + echo "WS_VERSION: $WS_VERSION" |
270 | 289 | - uses: actions/checkout@v4
|
271 | 290 | with:
|
272 | 291 | repository: adafruit/ci-arduino
|
@@ -372,9 +391,17 @@ jobs:
|
372 | 391 | - uses: actions/checkout@v4
|
373 | 392 | - name: Get WipperSnapper version
|
374 | 393 | run: |
|
375 |
| - git fetch --prune --unshallow --tags |
376 |
| - git describe --dirty --tags |
377 |
| - echo >>$GITHUB_ENV WS_VERSION=$(git describe --dirty --tags) |
| 394 | + git remote add adafruit https://github.com/adafruit/Adafruit_Wippersnapper_Arduino.git || true |
| 395 | + git fetch --prune --unshallow --all --tags |
| 396 | + if git describe --dirty --tags >/dev/null 2>&1; then |
| 397 | + echo >>$GITHUB_ENV WS_VERSION=$(git describe --dirty --tags) |
| 398 | + else |
| 399 | + # Fallback for forks: 1.0.0-{owner}-{short-sha} |
| 400 | + REPO_OWNER=$(echo $GITHUB_REPOSITORY | cut -d'/' -f1) |
| 401 | + SHORT_SHA=$(git rev-parse --short HEAD) |
| 402 | + echo >>$GITHUB_ENV WS_VERSION="1.0.0-${REPO_OWNER}-${SHORT_SHA}" |
| 403 | + fi |
| 404 | + echo "WS_VERSION: $WS_VERSION" |
378 | 405 | - uses: actions/checkout@v4
|
379 | 406 | with:
|
380 | 407 | repository: adafruit/ci-arduino
|
@@ -422,7 +449,7 @@ jobs:
|
422 | 449 | mv nanopb/pb.h src/nanopb/nanopb.pb.h
|
423 | 450 | - name: Install Dependencies
|
424 | 451 | run: |
|
425 |
| - pip install esptool |
| 452 | + pip install esptool==4.6 |
426 | 453 | - name: build ESP32 platforms
|
427 | 454 | run: python3 ci/build_platform.py ${{ matrix.arduino-platform }} --build_timeout 48000
|
428 | 455 | - name: Check artifacts
|
@@ -464,10 +491,10 @@ jobs:
|
464 | 491 | run: |
|
465 | 492 | echo ${{ steps.get_board_json.outputs.boardJson }}
|
466 | 493 | echo ${{ fromJson(steps.get_board_json.outputs.boardJson) }}
|
467 |
| - python3 -m esptool --chip ${{fromJson(steps.get_board_json.outputs.boardJson).esptool.chip}} merge-bin \ |
468 |
| - --flash-mode ${{fromJson(steps.get_board_json.outputs.boardJson).esptool.flashMode}} \ |
469 |
| - --flash-freq ${{fromJson(steps.get_board_json.outputs.boardJson).esptool.flashFreq}} \ |
470 |
| - --flash-size ${{fromJson(steps.get_board_json.outputs.boardJson).esptool.flashSize}} \ |
| 494 | + python3 -m esptool --chip ${{fromJson(steps.get_board_json.outputs.boardJson).esptool.chip}} merge_bin \ |
| 495 | + --flash_mode ${{fromJson(steps.get_board_json.outputs.boardJson).esptool.flashMode}} \ |
| 496 | + --flash_freq ${{fromJson(steps.get_board_json.outputs.boardJson).esptool.flashFreq}} \ |
| 497 | + --flash_size ${{fromJson(steps.get_board_json.outputs.boardJson).esptool.flashSize}} \ |
471 | 498 | -o wippersnapper.${{ matrix.arduino-platform }}.littlefs.${{ env.WS_VERSION }}.combined.bin \
|
472 | 499 | ${{ matrix.offset }} wippersnapper.${{ matrix.arduino-platform }}.littlefs.${{ env.WS_VERSION }}.bootloader.bin \
|
473 | 500 | 0x8000 wippersnapper.${{ matrix.arduino-platform }}.littlefs.${{ env.WS_VERSION }}.partitions.bin \
|
@@ -510,9 +537,17 @@ jobs:
|
510 | 537 | - uses: actions/checkout@v4
|
511 | 538 | - name: Get WipperSnapper version
|
512 | 539 | run: |
|
513 |
| - git fetch --prune --unshallow --tags |
514 |
| - git describe --dirty --tags |
515 |
| - echo >>$GITHUB_ENV WS_VERSION=$(git describe --dirty --tags) |
| 540 | + git remote add adafruit https://github.com/adafruit/Adafruit_Wippersnapper_Arduino.git || true |
| 541 | + git fetch --prune --unshallow --all --tags |
| 542 | + if git describe --dirty --tags >/dev/null 2>&1; then |
| 543 | + echo >>$GITHUB_ENV WS_VERSION=$(git describe --dirty --tags) |
| 544 | + else |
| 545 | + # Fallback for forks: 1.0.0-{owner}-{short-sha} |
| 546 | + REPO_OWNER=$(echo $GITHUB_REPOSITORY | cut -d'/' -f1) |
| 547 | + SHORT_SHA=$(git rev-parse --short HEAD) |
| 548 | + echo >>$GITHUB_ENV WS_VERSION="1.0.0-${REPO_OWNER}-${SHORT_SHA}" |
| 549 | + fi |
| 550 | + echo "WS_VERSION: $WS_VERSION" |
516 | 551 | - uses: actions/checkout@v4
|
517 | 552 | with:
|
518 | 553 | repository: adafruit/ci-arduino
|
@@ -592,9 +627,17 @@ jobs:
|
592 | 627 | - uses: actions/checkout@v4
|
593 | 628 | - name: Get WipperSnapper version
|
594 | 629 | run: |
|
595 |
| - git fetch --prune --unshallow --tags |
596 |
| - git describe --dirty --tags |
597 |
| - echo >>$GITHUB_ENV WS_VERSION=$(git describe --dirty --tags) |
| 630 | + git remote add adafruit https://github.com/adafruit/Adafruit_Wippersnapper_Arduino.git || true |
| 631 | + git fetch --prune --unshallow --all --tags |
| 632 | + if git describe --dirty --tags >/dev/null 2>&1; then |
| 633 | + echo >>$GITHUB_ENV WS_VERSION=$(git describe --dirty --tags) |
| 634 | + else |
| 635 | + # Fallback for forks: 1.0.0-{owner}-{short-sha} |
| 636 | + REPO_OWNER=$(echo $GITHUB_REPOSITORY | cut -d'/' -f1) |
| 637 | + SHORT_SHA=$(git rev-parse --short HEAD) |
| 638 | + echo >>$GITHUB_ENV WS_VERSION="1.0.0-${REPO_OWNER}-${SHORT_SHA}" |
| 639 | + fi |
| 640 | + echo "WS_VERSION: $WS_VERSION" |
598 | 641 | - uses: actions/checkout@v4
|
599 | 642 | with:
|
600 | 643 | repository: adafruit/ci-arduino
|
@@ -671,9 +714,17 @@ jobs:
|
671 | 714 | - uses: actions/checkout@v4
|
672 | 715 | - name: Get WipperSnapper version
|
673 | 716 | run: |
|
674 |
| - git fetch --prune --unshallow --tags |
675 |
| - git describe --dirty --tags |
676 |
| - echo >>$GITHUB_ENV WS_VERSION=$(git describe --dirty --tags) |
| 717 | + git remote add adafruit https://github.com/adafruit/Adafruit_Wippersnapper_Arduino.git || true |
| 718 | + git fetch --prune --unshallow --all --tags |
| 719 | + if git describe --dirty --tags >/dev/null 2>&1; then |
| 720 | + echo >>$GITHUB_ENV WS_VERSION=$(git describe --dirty --tags) |
| 721 | + else |
| 722 | + # Fallback for forks: 1.0.0-{owner}-{short-sha} |
| 723 | + REPO_OWNER=$(echo $GITHUB_REPOSITORY | cut -d'/' -f1) |
| 724 | + SHORT_SHA=$(git rev-parse --short HEAD) |
| 725 | + echo >>$GITHUB_ENV WS_VERSION="1.0.0-${REPO_OWNER}-${SHORT_SHA}" |
| 726 | + fi |
| 727 | + echo "WS_VERSION: $WS_VERSION" |
677 | 728 | - uses: actions/checkout@v4
|
678 | 729 | with:
|
679 | 730 | repository: adafruit/ci-arduino
|
@@ -768,9 +819,17 @@ jobs:
|
768 | 819 | - uses: actions/checkout@v4
|
769 | 820 | - name: Get WipperSnapper version
|
770 | 821 | run: |
|
771 |
| - git fetch --prune --unshallow --tags |
772 |
| - git describe --dirty --tags |
773 |
| - echo >>$GITHUB_ENV WS_VERSION=$(git describe --dirty --tags) |
| 822 | + git remote add adafruit https://github.com/adafruit/Adafruit_Wippersnapper_Arduino.git || true |
| 823 | + git fetch --prune --unshallow --all --tags |
| 824 | + if git describe --dirty --tags >/dev/null 2>&1; then |
| 825 | + echo >>$GITHUB_ENV WS_VERSION=$(git describe --dirty --tags) |
| 826 | + else |
| 827 | + # Fallback for forks: 1.0.0-{owner}-{short-sha} |
| 828 | + REPO_OWNER=$(echo $GITHUB_REPOSITORY | cut -d'/' -f1) |
| 829 | + SHORT_SHA=$(git rev-parse --short HEAD) |
| 830 | + echo >>$GITHUB_ENV WS_VERSION="1.0.0-${REPO_OWNER}-${SHORT_SHA}" |
| 831 | + fi |
| 832 | + echo "WS_VERSION: $WS_VERSION" |
774 | 833 | - uses: actions/checkout@v4
|
775 | 834 | with:
|
776 | 835 | repository: adafruit/ci-arduino
|
@@ -870,9 +929,17 @@ jobs:
|
870 | 929 | - uses: actions/checkout@v4
|
871 | 930 | - name: Get WipperSnapper version
|
872 | 931 | run: |
|
873 |
| - git fetch --prune --unshallow --tags |
874 |
| - git describe --dirty --tags |
875 |
| - echo >>$GITHUB_ENV WS_VERSION=$(git describe --dirty --tags) |
| 932 | + git remote add adafruit https://github.com/adafruit/Adafruit_Wippersnapper_Arduino.git || true |
| 933 | + git fetch --prune --unshallow --all --tags |
| 934 | + if git describe --dirty --tags >/dev/null 2>&1; then |
| 935 | + echo >>$GITHUB_ENV WS_VERSION=$(git describe --dirty --tags) |
| 936 | + else |
| 937 | + # Fallback for forks: 1.0.0-{owner}-{short-sha} |
| 938 | + REPO_OWNER=$(echo $GITHUB_REPOSITORY | cut -d'/' -f1) |
| 939 | + SHORT_SHA=$(git rev-parse --short HEAD) |
| 940 | + echo >>$GITHUB_ENV WS_VERSION="1.0.0-${REPO_OWNER}-${SHORT_SHA}" |
| 941 | + fi |
| 942 | + echo "WS_VERSION: $WS_VERSION" |
876 | 943 | - uses: actions/checkout@v4
|
877 | 944 | with:
|
878 | 945 | repository: adafruit/ci-arduino
|
@@ -920,7 +987,7 @@ jobs:
|
920 | 987 | mv nanopb/pb.h src/nanopb/nanopb.pb.h
|
921 | 988 | - name: Install Dependencies
|
922 | 989 | run: |
|
923 |
| - pip3 install esptool |
| 990 | + pip3 install esptool==4.6 |
924 | 991 | - name: build ESP32 platforms
|
925 | 992 | run: python3 ci/build_platform.py ${{ matrix.arduino-platform }} --build_timeout 48000
|
926 | 993 | - name: Check artifacts
|
@@ -964,10 +1031,10 @@ jobs:
|
964 | 1031 | run: |
|
965 | 1032 | echo ${{ steps.get_board_json.outputs.boardJson }}
|
966 | 1033 | echo ${{ fromJson(steps.get_board_json.outputs.boardJson) }}
|
967 |
| - python3 -m esptool --chip ${{fromJson(steps.get_board_json.outputs.boardJson).esptool.chip}} merge-bin \ |
968 |
| - --flash-mode ${{fromJson(steps.get_board_json.outputs.boardJson).esptool.flashMode}} \ |
969 |
| - --flash-freq ${{fromJson(steps.get_board_json.outputs.boardJson).esptool.flashFreq}} \ |
970 |
| - --flash-size ${{fromJson(steps.get_board_json.outputs.boardJson).esptool.flashSize}} \ |
| 1034 | + python3 -m esptool --chip ${{fromJson(steps.get_board_json.outputs.boardJson).esptool.chip}} merge_bin \ |
| 1035 | + --flash_mode ${{fromJson(steps.get_board_json.outputs.boardJson).esptool.flashMode}} \ |
| 1036 | + --flash_freq ${{fromJson(steps.get_board_json.outputs.boardJson).esptool.flashFreq}} \ |
| 1037 | + --flash_size ${{fromJson(steps.get_board_json.outputs.boardJson).esptool.flashSize}} \ |
971 | 1038 | -o wippersnapper.${{ matrix.arduino-platform }}.littlefs.${{ env.WS_VERSION }}.combined.bin \
|
972 | 1039 | ${{ matrix.offset }} wippersnapper.${{ matrix.arduino-platform }}.littlefs.${{ env.WS_VERSION }}.bootloader.bin \
|
973 | 1040 | 0x8000 wippersnapper.${{ matrix.arduino-platform }}.littlefs.${{ env.WS_VERSION }}.partitions.bin \
|
|
0 commit comments