Skip to content

Commit 0d525be

Browse files
committed
fix: remove camera examples
1 parent 577300f commit 0d525be

File tree

1 file changed

+32
-76
lines changed

1 file changed

+32
-76
lines changed
+32-76
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
name: Build for ESP8266 and ESP32
2-
1+
name: Build for ESP8266 and ESP32
32
on:
43
workflow_dispatch:
4+
55
pull_request:
66
branches: [ master ]
77
paths:
88
- src/**
99
- examples/**
10-
10+
1111
jobs:
12-
build-esp8266-esp32:
12+
build:
13+
1314
runs-on: ubuntu-latest
1415
strategy:
1516
matrix:
@@ -39,77 +40,32 @@ jobs:
3940
- examples/Health
4041
- examples/Settings/MultiWiFi
4142
- examples/AirQualitySensor/AirQualitySensor
42-
steps:
43-
- name: Checkout Repo
44-
uses: actions/checkout@v4
45-
46-
- name: Cache pip
47-
uses: actions/cache@v3
48-
with:
49-
path: ~/.cache/pip
50-
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
51-
restore-keys: ${{ runner.os }}-pip-
52-
53-
- name: Cache PlatformIO
54-
uses: actions/cache@v3
55-
with:
56-
path: ~/.platformio
57-
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
58-
59-
- name: Set up Python
60-
uses: actions/setup-python@v3
61-
62-
- name: Install PlatformIO
63-
run: |
64-
python -m pip install --upgrade pip
65-
pip install --upgrade platformio
66-
67-
- name: Install library dependencies
68-
run: |
69-
pio pkg install -l "bblanchon/ArduinoJson" -l "links2004/WebSockets" -g
70-
71-
- name: Run build test using PlatformIO
72-
run: pio ci --lib="." -b esp12e -b esp32dev
73-
env:
74-
PLATFORMIO_CI_SRC: ${{ matrix.example }}
7543

76-
build-camera-examples:
77-
runs-on: ubuntu-latest
78-
strategy:
79-
matrix:
80-
example:
81-
- examples/Camera/motion-capture
82-
- examples/Camera/snapshot-camera
8344
steps:
84-
- name: Checkout Repo
85-
uses: actions/checkout@v4
86-
87-
- name: Cache pip
88-
uses: actions/cache@v3
89-
with:
90-
path: ~/.cache/pip
91-
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
92-
restore-keys: ${{ runner.os }}-pip-
93-
94-
- name: Cache PlatformIO
95-
uses: actions/cache@v3
96-
with:
97-
path: ~/.platformio
98-
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
99-
100-
- name: Set up Python
101-
uses: actions/setup-python@v3
102-
103-
- name: Install PlatformIO
104-
run: |
105-
python -m pip install --upgrade pip
106-
pip install --upgrade platformio
107-
108-
- name: Install library dependencies
109-
run: |
110-
pio pkg install -l "bblanchon/ArduinoJson" -l "links2004/WebSockets" -g
111-
112-
- name: Run build test using PlatformIO
113-
run: pio ci --lib="." -b esp32dev
114-
env:
115-
PLATFORMIO_CI_SRC: ${{ matrix.example }}
45+
46+
- name: Step 1 - Checkout Repo
47+
uses: actions/checkout@v4
48+
- name: Step 2 - Cache pip
49+
uses: actions/cache@v3
50+
with:
51+
path: ~/.cache/pip
52+
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
53+
restore-keys: ${{ runner.os }}-pip-
54+
- name: Step 3 - Cache PlatformIO
55+
uses: actions/cache@v3
56+
with:
57+
path: ~/.platformio
58+
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
59+
- name: Step 4 - Set up Python
60+
uses: actions/setup-python@v3
61+
- name: Step 5 - Install PlatformIO
62+
run: |
63+
python -m pip install --upgrade pip
64+
pip install --upgrade platformio
65+
- name: Step 6 - Install library dependencies
66+
run: |
67+
pio pkg install -l "bblanchon/ArduinoJson" -l "links2004/WebSockets" -g
68+
- name: Step 7 - Run build test using PlatformIO
69+
run: pio ci --lib="." -b esp12e -b esp32dev
70+
env:
71+
PLATFORMIO_CI_SRC: ${{ matrix.example }}

0 commit comments

Comments
 (0)