File tree Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Compile Examples
2
+
3
+ on : [push, pull_request]
4
+
5
+ jobs :
6
+ build :
7
+ runs-on : ubuntu-latest
8
+
9
+ env :
10
+ # sketch paths to compile (recursive) for all boards
11
+ CAMERA_SKETCH_PATHS : |
12
+ - examples/Camera/motion-capture
13
+ - examples/Camera/snapshot-camera
14
+
15
+ strategy :
16
+ fail-fast : false
17
+
18
+ matrix :
19
+ board :
20
+ - fqbn : esp32:esp32:esp32
21
+ type : esp32
22
+
23
+ # make board type-specific customizations to the matrix jobs
24
+ include :
25
+ # ESP32 boards
26
+ - board :
27
+ type : esp32
28
+ platforms : |
29
+ # Install ESP32 platform via Boards Manager
30
+ - name: esp32:esp32
31
+ source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
32
+ libraries : |
33
+ - source-path: ./
34
+ sketch-paths :
35
+
36
+ steps :
37
+ - name : Checkout
38
+ uses : actions/checkout@v2
39
+
40
+ - name : Install ESP32 platform dependencies
41
+ if : matrix.board.type == 'esp32'
42
+ run : pip3 install pyserial
43
+
44
+ - name : Compile examples
45
+ uses : arduino/compile-sketches@v1
46
+ with :
47
+ platforms : ${{ matrix.platforms }}
48
+ fqbn : ${{ matrix.board.fqbn }}
49
+ libraries : |
50
+ ${{ matrix.libraries }}
51
+ sketch-paths : |
52
+ ${{ env.CAMERA_SKETCH_PATHS }}
53
+ cli-compile-flags : |
54
+ - --warnings="none"
55
+ # "compiler.cpp.extra_flags=-Werror"
You can’t perform that action at this time.
0 commit comments