Skip to content

Commit 8870d3f

Browse files
committed
Update compile.yml
1 parent 1086500 commit 8870d3f

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/compile.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff 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-

0 commit comments

Comments
 (0)