Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Camera improvements #412

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/build-esp32-camera-examples.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: ESP32 Camera Examples

on:
push:
pull_request:

env:
SKETCHES: |
examples/Camera/motion-capture
examples/Camera/snapshot-camera

jobs:
compile-camera-examples:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
include:
- board: "esp32:esp32:esp32"
platform-url: "https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json"

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install pyserial

- name: Compile ESP32 camera examples
uses: arduino/compile-sketches@v1
with:
fqbn: ${{ matrix.board }}
platforms: |
- name: esp32:esp32
source-url: ${{ matrix.platform-url }}
libraries: |
- source-path: ./
- source-url: https://github.com/Links2004/arduinoWebSockets.git
- source-url: https://github.com/bblanchon/ArduinoJson.git
sketch-paths: ${{ env.SKETCHES }}
cli-compile-flags: |
- --warnings=none
27 changes: 26 additions & 1 deletion .github/workflows/build-esp8266-esp32.yml
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kakopappa Please remove the camera examples from this list. This job runs on ESP32 and ESP8266 and will fail on ESP8266.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @sivar2311

added a new workflow for camera examples

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,32 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
example: [examples/ACUnit, examples/AirQualitySensor/AirQualitySensor, examples/Blinds, examples/ContactSensor, examples/DimSwitch, examples/doorbell, examples/Fan, examples/GarageDoor, examples/Light/Light, examples/Lock/Lock, examples/Lock/Lock_with_feedback, examples/MotionSensor, examples/PowerSensor, examples/Relay/MultiRelays_advance, examples/Relay/Relay, examples/Speaker, examples/Switch/MultiSwitch_advance, examples/Switch/MultiSwitch_beginner, examples/Switch/MultiSwitch_intermediate, examples/Switch/Switch, examples/Thermostat, examples/TV, examples/OTAUpdate, examples/Health, examples/Settings/MultiWiFi]
example:
- examples/ACUnit
- examples/Blinds
- examples/ContactSensor
- examples/DimSwitch
- examples/doorbell
- examples/Fan
- examples/GarageDoor
- examples/Light/Light
- examples/Lock/Lock
- examples/Lock/Lock_with_feedback
- examples/MotionSensor
- examples/PowerSensor
- examples/Relay/MultiRelays_advance
- examples/Relay/Relay
- examples/Speaker
- examples/Switch/MultiSwitch_advance
- examples/Switch/MultiSwitch_beginner
- examples/Switch/MultiSwitch_intermediate
- examples/Switch/Switch
- examples/Thermostat
- examples/TV
- examples/OTAUpdate
- examples/Health
- examples/Settings/MultiWiFi
- examples/AirQualitySensor/AirQualitySensor

steps:

Expand Down
Loading
Loading