1
- name : Compile Camera Examples
1
+ name : ESP32 Camera Examples
2
2
3
- on : [push, pull_request]
3
+ on :
4
+ push :
5
+ pull_request :
6
+
7
+ env :
8
+ SKETCHES : |
9
+ examples/Camera/motion-capture
10
+ examples/Camera/snapshot-camera
4
11
5
12
jobs :
6
- build :
13
+ compile-camera-examples :
7
14
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
+
15
16
strategy :
16
17
fail-fast : false
17
-
18
18
matrix :
19
- board :
20
- - fqbn : esp32:esp32:esp32
21
- type : esp32
22
-
23
- # make board type-specific customizations to the matrix jobs
24
19
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
- - source-url: "https://github.com/Links2004/arduinoWebSockets.git"
35
- - source-url: "https://github.com/bblanchon/ArduinoJson.git"
36
- sketch-paths :
20
+ - board : " esp32:esp32:esp32"
21
+ platform-url : " https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json"
37
22
38
23
steps :
39
- - name : Checkout
40
- uses : actions/checkout@v2
24
+ - name : Checkout repository
25
+ uses : actions/checkout@v4
41
26
42
- - name : Install ESP32 platform dependencies
43
- if : matrix.board.type == 'esp32'
44
- run : pip3 install pyserial
27
+ - name : Install Python dependencies
28
+ run : |
29
+ python -m pip install --upgrade pip
30
+ pip install pyserial
45
31
46
- - name : Compile examples
32
+ - name : Compile ESP32 camera examples
47
33
uses : arduino/compile-sketches@v1
48
34
with :
49
- platforms : ${{ matrix.platforms }}
50
- fqbn : ${{ matrix.board.fqbn }}
35
+ fqbn : ${{ matrix.board }}
36
+ platforms : |
37
+ - name: esp32:esp32
38
+ source-url: ${{ matrix.platform-url }}
51
39
libraries : |
52
- ${{ matrix.libraries }}
53
- sketch-paths : |
54
- ${{ env.CAMERA_SKETCH_PATHS }}
40
+ - source-path: ./
41
+ - source-url: https://github.com/Links2004/arduinoWebSockets.git
42
+ - source-url: https://github.com/bblanchon/ArduinoJson.git
43
+ sketch-paths : ${{ env.SKETCHES }}
55
44
cli-compile-flags : |
56
- - --warnings="none"
57
- # "compiler.cpp.extra_flags=-Werror"
45
+ - --warnings=none
0 commit comments