|
12 | 12 | branches: |
13 | 13 | - '*' |
14 | 14 | paths: |
15 | | - - 'src/unit/**.cpp' |
16 | | - - 'src/unit/**.hpp' |
17 | | - - 'src/unit/**.h' |
18 | | - - 'src/unit/**.c' |
| 15 | + - 'src/**.cpp' |
| 16 | + - 'src/**.hpp' |
| 17 | + - 'src/**.h' |
| 18 | + - 'src/**.c' |
19 | 19 | - 'examples/UnitUnified/**.ino' |
20 | 20 | - 'examples/UnitUnified/**.cpp' |
21 | 21 | - 'examples/UnitUnified/**.hpp' |
22 | 22 | - 'examples/UnitUnified/**.h' |
23 | 23 | - 'examples/UnitUnified/**.c' |
24 | | - - '**arduino-esp-v3-build-check.yml' |
| 24 | + - '.github/workflows/arduino-esp-v3-build-check.yml' |
25 | 25 | pull_request: |
26 | 26 | paths: |
27 | | - - 'src/unit/**.cpp' |
28 | | - - 'src/unit/**.hpp' |
29 | | - - 'src/unit/**.h' |
30 | | - - 'src/unit/**.c' |
| 27 | + - 'src/**.cpp' |
| 28 | + - 'src/**.hpp' |
| 29 | + - 'src/**.h' |
| 30 | + - 'src/**.c' |
31 | 31 | - 'examples/UnitUnified/**.ino' |
32 | 32 | - 'examples/UnitUnified/**.cpp' |
33 | 33 | - 'examples/UnitUnified/**.hpp' |
34 | 34 | - 'examples/UnitUnified/**.h' |
35 | 35 | - 'examples/UnitUnified/**.c' |
36 | | - - '**arduino-esp-v3-build-check.yml' |
| 36 | + - '.github/workflows/arduino-esp-v3-build-check.yml' |
37 | 37 | workflow_dispatch: |
38 | 38 |
|
39 | 39 | defaults: |
@@ -105,16 +105,26 @@ jobs: |
105 | 105 | - name: Checkout |
106 | 106 | uses: actions/checkout@v4 |
107 | 107 |
|
108 | | - # Build |
| 108 | + - name: Prepare libraries list |
| 109 | + id: libs |
| 110 | + run: | |
| 111 | + { |
| 112 | + echo "yaml<<EOF" |
| 113 | + echo "$REQUIRED_LIBRARIES" | tr ',' '\n' | while read -r lib; do |
| 114 | + echo "- name: $lib" |
| 115 | + done |
| 116 | + echo "- source-path: ./" |
| 117 | + echo "EOF" |
| 118 | + } >> "$GITHUB_OUTPUT" |
| 119 | +
|
109 | 120 | - name: Compile examples |
110 | | - uses: ArminJo/arduino-test-compile@master |
| 121 | + uses: arduino/compile-sketches@v1 |
111 | 122 | with: |
112 | | - arduino-board-fqbn: ${{ matrix.platform }}:${{ matrix.archi }}:${{ matrix.board }} |
113 | | - arduino-platform: ${{ matrix.platform }}:${{ matrix.archi }}@${{ matrix.platform-version }} |
114 | | - platform-url: ${{ matrix.platform-url }} |
115 | | - required-libraries: ${{ env.REQUIRED_LIBRARIES }} |
116 | | - extra-arduino-cli-args: ${{ matrix.cli-args }} |
117 | | - #build-properties: ${{ toJson(matrix.build-properties) }} |
118 | | - sketch-names: ${{ matrix.sketch }}.ino |
119 | | - sketch-names-find-start: ${{ env.SKETCH_NAMES_FIND_START }}/${{ matrix.unit }} |
120 | | - #sketches-exclude: ${{ matrix.sketches-exclude }} |
| 123 | + fqbn: ${{ matrix.platform }}:${{ matrix.archi }}:${{ matrix.board }} |
| 124 | + platforms: | |
| 125 | + - name: ${{ matrix.platform }}:${{ matrix.archi }} |
| 126 | + source-url: ${{ matrix.platform-url }} |
| 127 | + version: ${{ matrix.platform-version }} |
| 128 | + libraries: ${{ steps.libs.outputs.yaml }} |
| 129 | + sketch-paths: | |
| 130 | + - ${{ env.SKETCH_NAMES_FIND_START }}/${{ matrix.unit }}/${{ matrix.sketch }} |
0 commit comments