Skip to content

Commit

Permalink
Exclude non webflashable examples from build
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNitek committed Feb 4, 2024
1 parent 6a98e47 commit 2326a6c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
pip install --upgrade platformio
- name: Build
run: |
find . -not -path '*/.*' -type f -name 'platformio.ini' -printf '%h\n' | xargs -i bash -c "(echo {}; pio run -e cyd -e cyd2usb -d {})"
find . -not -path '*/.*' -type f -name 'platformio.ini' -print0 | xargs -0 grep -L "; nowebflash" | xargs -i bash -c "(echo {}; pio run -e cyd -e cyd2usb -d {})"
- name: Merge flash files
run: |
find . -path '*/.pio*' -type f -name 'firmware.bin' -printf '%h\n' | xargs -i bash -c "(echo {}; cd {}; ~/.platformio/packages/tool-esptoolpy/esptool.py --chip esp32 merge_bin -o merged-flash.bin --flash_mode dio --flash_size 4MB 0x1000 bootloader.bin 0x8000 partitions.bin 0x10000 firmware.bin)"
Expand Down
1 change: 1 addition & 0 deletions Examples/Basics/7-HelloRadio/platformio.ini
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
; nowebflash
[platformio]
src_dir = .
default_envs = cyd
Expand Down
1 change: 1 addition & 0 deletions Examples/Projects/RollingClock/platformio.ini
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
; nowebflash
[platformio]
src_dir = .
default_envs = cyd
Expand Down

0 comments on commit 2326a6c

Please sign in to comment.