|
1 | | -name: Compile Examples |
2 | | -on: [push] |
3 | | -jobs: |
4 | | - build: |
5 | | - runs-on: ubuntu-latest |
| 1 | +- name: Compile examples |
| 2 | + uses: arduino/compile-sketches@v1 |
| 3 | + with: |
| 4 | + github-token: ${{ secrets.GITHUB_TOKEN }} |
| 5 | + platforms: | |
| 6 | + - source-url: https://raw.githubusercontent.com/SolderedElectronics/Inkplate-Board-Definitions-for-Arduino-IDE/main/package_Inkplate_Boards_index.json |
| 7 | + name: soldered-inkplate-boards:esp32 |
| 8 | + fqbn: ${{ matrix.board.fqbn }} |
| 9 | + libraries: | |
| 10 | + - source-path: ./ |
| 11 | + - name: ArduinoJson |
| 12 | + - name: Time |
| 13 | + - source-url: https://github.com/SolderedElectronics/Soldered-MFRC522-RFID-Reader-Arduino-Library.git |
| 14 | + - source-url: https://github.com/SolderedElectronics/Soldered-WS2812-Smart-Leds-Arduino-Library.git |
| 15 | + - source-url: https://github.com/SolderedElectronics/Soldered-BME280-BME680-Gas-Sensor-Arduino-Library.git |
| 16 | + sketch-paths: | |
| 17 | + ${{ matrix.additional-sketch-paths }} |
| 18 | + cli-compile-flags: | |
| 19 | + - --warnings="default" |
6 | 20 |
|
7 | | - strategy: |
8 | | - matrix: |
9 | | - include: |
10 | | - - board: |
11 | | - fqbn: soldered-inkplate-boards:esp32:Inkplate5V2 |
12 | | - additional-sketch-paths: | |
13 | | - - examples/Inkplate5V2 |
14 | | - - board: |
15 | | - fqbn: soldered-inkplate-boards:esp32:Inkplate6V2 |
16 | | - additional-sketch-paths: | |
17 | | - - examples/Inkplate6 |
18 | | - - board: |
19 | | - fqbn: soldered-inkplate-boards:esp32:Inkplate10V2 |
20 | | - additional-sketch-paths: | |
21 | | - - examples/Inkplate10 |
22 | | - - board: |
23 | | - fqbn: soldered-inkplate-boards:esp32:Inkplate6Flick |
24 | | - additional-sketch-paths: | |
25 | | - - examples/Inkplate6FLICK |
26 | | - - board: |
27 | | - fqbn: soldered-inkplate-boards:esp32:Inkplate6COLOR |
28 | | - additional-sketch-paths: | |
29 | | - - examples/Inkplate6COLOR |
30 | | - - board: |
31 | | - fqbn: soldered-inkplate-boards:esp32:Inkplate2 |
32 | | - additional-sketch-paths: | |
33 | | - - examples/Inkplate2 |
34 | | - steps: |
35 | | - - name: Checkout |
36 | | - uses: actions/checkout@v3 |
37 | | - - name: Install ESP32 platform dependencies |
38 | | - run: pip3 install pyserial |
39 | | - - name: Debug toolchain path |
40 | | - run: | |
41 | | - find ~/.arduino15/packages -type f -name "xtensa-esp32-elf-g++" || true |
42 | | - grep "compiler.path" ~/.arduino15/packages/soldered-inkplate-boards/hardware/esp32/2.0.0/platform.txt || true |
43 | | - - name: Compile examples |
44 | | - uses: arduino/compile-sketches@v1 |
45 | | - with: |
46 | | - github-token: ${{ secrets.GITHUB_TOKEN }} |
47 | | - platforms: | |
48 | | - - source-url: https://github.com/SolderedElectronics/Inkplate-Board-Definitions-for-Arduino-IDE/raw/refs/heads/main/package_Inkplate_Boards_index.json |
49 | | - name: soldered-inkplate-boards:esp32 |
50 | | -
|
51 | | - fqbn: ${{ matrix.board.fqbn }} |
52 | | - libraries: | |
53 | | - - source-path: ./ |
54 | | - - name: ArduinoJson |
55 | | - - name: Time |
56 | | - - source-url: https://github.com/SolderedElectronics/Soldered-MFRC522-RFID-Reader-Arduino-Library.git |
57 | | - - source-url: https://github.com/SolderedElectronics/Soldered-WS2812-Smart-Leds-Arduino-Library.git |
58 | | - - source-url: https://github.com/SolderedElectronics/Soldered-BME280-BME680-Gas-Sensor-Arduino-Library.git |
59 | | - sketch-paths: | |
60 | | - ${{ matrix.additional-sketch-paths }} |
61 | | - cli-compile-flags: | |
62 | | - - --warnings="default" |
0 commit comments