Skip to content

Commit 6d8a728

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

File tree

1 file changed

+35
-35
lines changed

1 file changed

+35
-35
lines changed

.github/workflows/compile.yml

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
name: Compile Examples
2-
32
on: [push]
4-
53
jobs:
64
build:
75
runs-on: ubuntu-latest
@@ -11,48 +9,50 @@ jobs:
119
include:
1210
- board:
1311
fqbn: soldered-inkplate-boards:esp32:Inkplate5V2
14-
additional-sketch-paths: examples/Inkplate5V2
12+
additional-sketch-paths: |
13+
- examples/Inkplate5V2
1514
- board:
1615
fqbn: soldered-inkplate-boards:esp32:Inkplate6V2
17-
additional-sketch-paths: examples/Inkplate6
16+
additional-sketch-paths: |
17+
- examples/Inkplate6
1818
- board:
1919
fqbn: soldered-inkplate-boards:esp32:Inkplate10V2
20-
additional-sketch-paths: examples/Inkplate10
20+
additional-sketch-paths: |
21+
- examples/Inkplate10
2122
- board:
2223
fqbn: soldered-inkplate-boards:esp32:Inkplate6Flick
23-
additional-sketch-paths: examples/Inkplate6FLICK
24+
additional-sketch-paths: |
25+
- examples/Inkplate6FLICK
2426
- board:
2527
fqbn: soldered-inkplate-boards:esp32:Inkplate6COLOR
26-
additional-sketch-paths: examples/Inkplate6COLOR
28+
additional-sketch-paths: |
29+
- examples/Inkplate6COLOR
2730
- board:
2831
fqbn: soldered-inkplate-boards:esp32:Inkplate2
29-
additional-sketch-paths: examples/Inkplate2
30-
32+
additional-sketch-paths: |
33+
- examples/Inkplate2
3134
steps:
32-
- name: Checkout repository
33-
uses: actions/checkout@v4
34-
35-
- name: Install Arduino CLI
36-
uses: arduino/setup-arduino-cli@v2
35+
- name: Checkout
36+
uses: actions/checkout@v3
37+
- name: Install ESP32 platform dependencies
38+
run: pip3 install pyserial
39+
- name: Compile examples
40+
uses: arduino/compile-sketches@v1
3741
with:
38-
version: 0.35.3
39-
40-
- name: Install ESP32 and Inkplate platforms
41-
run: |
42-
arduino-cli config init
43-
arduino-cli config add board_manager.additional_urls https://raw.githubusercontent.com/SolderedElectronics/Inkplate-Board-Definitions-for-Arduino-IDE/main/package_Inkplate_Boards_index.json
44-
arduino-cli core update-index
45-
arduino-cli core install soldered-inkplate-boards:esp32
46-
47-
- name: Compile all sketches
48-
run: |
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
58-
done
42+
github-token: ${{ secrets.GITHUB_TOKEN }}
43+
platforms: |
44+
- source-url: https://github.com/SolderedElectronics/Inkplate-Board-Definitions-for-Arduino-IDE/raw/refs/heads/main/package_Inkplate_Boards_index.json
45+
name: soldered-inkplate-boards:esp32
46+
47+
fqbn: ${{ matrix.board.fqbn }}
48+
libraries: |
49+
- source-path: ./
50+
- name: ArduinoJson
51+
- name: Time
52+
- source-url: https://github.com/SolderedElectronics/Soldered-MFRC522-RFID-Reader-Arduino-Library.git
53+
- source-url: https://github.com/SolderedElectronics/Soldered-WS2812-Smart-Leds-Arduino-Library.git
54+
- source-url: https://github.com/SolderedElectronics/Soldered-BME280-BME680-Gas-Sensor-Arduino-Library.git
55+
sketch-paths: |
56+
${{ matrix.additional-sketch-paths }}
57+
cli-compile-flags: |
58+
- --warnings="default"

0 commit comments

Comments
 (0)