77 build :
88 runs-on : ubuntu-latest
99
10- strategy :
11- fail-fast : true # Stop immediately if a failure occurs in any matrix job
12- matrix :
13- include :
14- - board :
15- fqbn : Inkplate_Motion:stm32:Inkplate6Motion
16- additional-sketch-paths : |
17- - examples
18-
1910 steps :
2011 # Ensure that Bash is used for compatibility with the prebuild script
2112 - name : Ensure Bash Shell
@@ -25,22 +16,17 @@ jobs:
2516 - name : Checkout
2617 uses : actions/checkout@v3
2718
28- # Compile all examples
29- - name : Compile examples
30- uses : arduino/compile-sketches@v1
31- with :
32- github-token : ${{ secrets.GITHUB_TOKEN }}
33- platforms : |
34- - source-url: https://github.com/SolderedElectronics/Dasduino-Board-Definitions-for-Arduino-IDE/raw/master/package_Dasduino_Boards_index.json
35- name: Inkplate_Motion:stm32
36-
37- fqbn : ${{ matrix.board.fqbn }}
38- libraries : |
39- - source-path: ./
40- sketch-paths : |
41- ${{ matrix.additional-sketch-paths }}
19+ # Install necessary platforms
20+ - name : Install Arduino Core
21+ run : |
22+ arduino-cli core update-index
23+ arduino-cli core install Inkplate_Motion:stm32
4224
43- # Stop workflow if a compilation error occurs
44- - name : Check for Compilation Errors
45- if : failure() # This will trigger if the compile-sketches action fails
46- run : exit 1
25+ # Compile all examples and fail fast on error
26+ - name : Compile examples
27+ run : |
28+ set -e # Exit immediately if a command exits with a non-zero status
29+ for sketch in $(find examples -name '*.ino'); do
30+ echo "Compiling $sketch"
31+ arduino-cli compile --fqbn Inkplate_Motion:stm32:Inkplate6Motion "$sketch" --warnings=all --verbose
32+ done
0 commit comments