1- name : Compile  Camera Examples
1+ name : ESP32  Camera Examples
22
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 
411
512jobs :
6-   build :
13+   compile-camera-examples :
714    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+     
1516    strategy :
1617      fail-fast : false 
17- 
1818      matrix :
19-         board :          
20-           - fqbn : esp32:esp32:esp32 
21-             type : esp32 
22- 
23-         #  make board type-specific customizations to the matrix jobs
2419        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" 
3722
3823    steps :
39-       - name : Checkout 
40-         uses : actions/checkout@v2  
24+       - name : Checkout repository  
25+         uses : actions/checkout@v4  
4126
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 
4531
46-       - name : Compile examples 
32+ name : Compile ESP32 camera  examples 
4733        uses : arduino/compile-sketches@v1 
4834        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 }} 
5139libraries : | 
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 }} 
5544          cli-compile-flags : | 
56-             - --warnings="none" 
57-             # "compiler.cpp.extra_flags=-Werror" 
45+             - --warnings=none 
0 commit comments