Skip to content

Commit da02b05

Browse files
committed
Update compile.yml
1 parent 20ce6ab commit da02b05

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/compile.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,15 @@ jobs:
3535
run: |
3636
arduino-cli core install Inkplate_Motion:stm32
3737
38-
# Compile all examples and fail fast on error
38+
# Compile all examples and include the current repository as a library
3939
- name: Compile examples
4040
run: |
4141
set -e # Exit immediately if a command exits with a non-zero status
4242
for sketch in $(find examples -name '*.ino'); do
4343
echo "Compiling $sketch"
44-
arduino-cli compile --fqbn Inkplate_Motion:stm32:Inkplate6Motion "$sketch" --warnings=all --verbose
44+
arduino-cli compile \
45+
--fqbn Inkplate_Motion:stm32:Inkplate6Motion \
46+
--libraries . \ # Include the current repository as a library
47+
"$sketch" \
48+
--warnings=all --verbose
4549
done

0 commit comments

Comments
 (0)