File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -44,11 +44,15 @@ jobs:
4444 arduino-cli core update-index
4545 arduino-cli core install soldered-inkplate-boards:esp32
4646
47- - name : Compile examples
47+ - name : Compile all sketches
4848 run : |
49- sketches="${{ matrix.additional-sketch-paths }}"
50- for sketch in $sketches; do
51- echo "Compiling $sketch for ${{ matrix.board.fqbn }}"
52- arduino-cli compile --fqbn ${{ matrix.board.fqbn }} "$sketch" --warnings default
49+ echo "Searching for all .ino sketches..."
50+ find examples -type f -name "*.ino"
51+
52+ echo
53+ echo "Starting compilation for ${{ matrix.board.fqbn }}..."
54+ find examples -type f -name "*.ino" | while read sketch; do
55+ sketch_dir=$(dirname "$sketch")
56+ echo "Compiling sketch: $sketch_dir"
57+ arduino-cli compile --fqbn ${{ matrix.board.fqbn }} "$sketch_dir" --warnings default || exit 1
5358 done
54-
You can’t perform that action at this time.
0 commit comments