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

Develop into master #11

Merged
merged 49 commits into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
1456a95
Changes: Quality definitions to standard jpeg quality
cnadler86 Oct 10, 2024
9f8efe4
Bug corrected?
cnadler86 Oct 10, 2024
2e8699d
Added static to internal function before makro. Will this work?
cnadler86 Oct 10, 2024
a382332
Update workflow
cnadler86 Oct 10, 2024
bb6ba06
Update WOrkflow
cnadler86 Oct 10, 2024
2b99cbd
Update Workflow
cnadler86 Oct 10, 2024
cd0b2e0
Add board build support to pipeline (#7)
cnadler86 Oct 13, 2024
f1fdfc4
Updates Readme and improve,emts for jpeg quality.
cnadler86 Oct 14, 2024
05f3deb
Add all new boards.
cnadler86 Oct 14, 2024
25c9469
Bug corrected in pipeline for boards
cnadler86 Oct 14, 2024
44e6a96
modcamera.h aktualisieren
cnadler86 Oct 15, 2024
bf88dd2
Update camera pin definitions
cnadler86 Oct 16, 2024
648b01e
Update Readme
cnadler86 Oct 16, 2024
06d3f9c
New example (working on it)
cnadler86 Oct 18, 2024
8a4a7a9
ESP32cam.html aktualisieren
cnadler86 Oct 18, 2024
6b77cb8
CameraSettings.py aktualisieren
cnadler86 Oct 18, 2024
02e5b18
update examples
cnadler86 Oct 19, 2024
2e6f1cb
CameraSettings.py aktualisieren
cnadler86 Oct 19, 2024
d7fea74
ESP32cam.html aktualisieren
cnadler86 Oct 19, 2024
01d489b
CameraSettings.py aktualisieren
cnadler86 Oct 19, 2024
c330a48
Improvements
cnadler86 Oct 20, 2024
51fcfc2
README.md aktualisieren
cnadler86 Oct 20, 2024
ccecc1f
Major improvements
cnadler86 Oct 21, 2024
215a5e5
Possible correction of jpeg quality warning due to API validation
cnadler86 Oct 21, 2024
44a6737
modcamera.c aktualisieren
cnadler86 Oct 21, 2024
b9131d9
Added sensor name to API and improvements on WebCam
cnadler86 Oct 22, 2024
d561f38
Bug corrected
cnadler86 Oct 22, 2024
e04eef8
Update readme
cnadler86 Oct 22, 2024
a318cb5
Update readme
cnadler86 Oct 22, 2024
2834657
Update readme
cnadler86 Oct 22, 2024
899712e
minor improvements
cnadler86 Oct 23, 2024
76a89ea
modcamera.c aktualisieren
cnadler86 Oct 25, 2024
9f715c0
Img converter to develop (#10)
cnadler86 Oct 29, 2024
0df98f4
benchmark script ok
cnadler86 Oct 29, 2024
6bd240c
ESP32.yml aktualisieren
cnadler86 Nov 3, 2024
97c9783
ESP32.yml aktualisieren
cnadler86 Nov 3, 2024
5e32113
ESP32.yml aktualisieren
cnadler86 Nov 3, 2024
3e1a3b0
release condidate
cnadler86 Nov 4, 2024
a908b5a
added make submodules to workflow
cnadler86 Nov 4, 2024
9f99243
some improvements
cnadler86 Nov 4, 2024
2586853
Update readme
cnadler86 Nov 4, 2024
f0e654a
Readme improved
cnadler86 Nov 4, 2024
af21ebf
Readme update
cnadler86 Nov 4, 2024
0ccc617
release candidate (only need to attach to Core 1 and wait for driver …
cnadler86 Nov 4, 2024
ff35d2b
Change to own camera fork
cnadler86 Nov 6, 2024
ef37d98
Added benchmark
cnadler86 Nov 6, 2024
fc466ab
readme
cnadler86 Nov 6, 2024
b78ecdd
Update pipeline for releases
cnadler86 Nov 6, 2024
899ff37
create release draft
cnadler86 Nov 6, 2024
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
32 changes: 32 additions & 0 deletions .github/workflows/Create-Release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Add-Artifacts-to-Draft-Release

on:
release:
types:
- created

jobs:
add_artifacts:
if: ${{ github.event.release.draft }}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up GitHub CLI
uses: actions/setup-gh-cli@v2

- name: Authenticate GitHub CLI
run: echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token

- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: firmware-*
path: ./artifacts

- name: Upload Release Assets
run: |
for file in ./artifacts/*; do
gh release upload "${{ github.event.release.tag_name }}" "$file" --clobber
done
61 changes: 49 additions & 12 deletions .github/workflows/ESP32.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ on:
push:
paths:
- 'src/**'
- '.github/workflows/*.yml'
pull_request:
branches:
- master
paths:
- 'src/**'
- '.github/workflows/*.yml'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -68,13 +72,13 @@ jobs:
if: steps.cache_esp_idf.outputs.cache-hit != 'true'
run: |
cd ~
git clone --depth 1 --branch release/v5.2 https://github.com/espressif/esp-idf.git
# git clone --depth 1 --branch ${{ env.IDF_VER }} https://github.com/espressif/esp-idf.git
# git clone --depth 1 --branch release/v5.2 https://github.com/espressif/esp-idf.git
git clone --depth 1 --branch ${{ env.IDF_VER }} https://github.com/espressif/esp-idf.git
git -C esp-idf submodule update --init --recursive --filter=tree:0
cd esp-idf
./install.sh all
cd components
git clone https://github.com/espressif/esp32-camera
git clone https://github.com/cnadler86/esp32-camera
cd ~/esp-idf/
source ./export.sh

Expand All @@ -85,12 +89,30 @@ jobs:
strategy:
fail-fast: false
matrix:
board:
board:
- ESP32_GENERIC-SPIRAM
- ESP32_GENERIC_S2
- ESP32_GENERIC_S3
- ESP32_GENERIC_S3-SPIRAM_OCT
- ESP32_GENERIC_S3-FLASH_4M
- ESP32_GENERIC-SPIRAM@WROVER_KIT
- ESP32_GENERIC-SPIRAM@ESP_EYE
- ESP32_GENERIC-SPIRAM@M5STACK_PSRAM
- ESP32_GENERIC-SPIRAM@M5STACK_V2_PSRAM
- ESP32_GENERIC-SPIRAM@M5STACK_WIDE
- ESP32_GENERIC-SPIRAM@M5STACK_ESP32CAM
- ESP32_GENERIC-SPIRAM@M5STACK_UNITCAM
- ESP32_GENERIC-SPIRAM@AI_THINKER
- ESP32_GENERIC-SPIRAM@TTGO_T_JOURNAL
- ESP32_GENERIC-SPIRAM@TTGO_T_CAMERA_PLUS
- ESP32_GENERIC_S3-SPIRAM_OCT@M5STACK_CAMS3_UNIT
- ESP32_GENERIC_S3-SPIRAM_OCT@XIAO_ESP32S3
- ESP32_GENERIC_S3-SPIRAM_OCT@ESP32S3_CAM_LCD
- ESP32_GENERIC_S3-SPIRAM_OCT@ESP32S3_EYE
- ESP32_GENERIC_S3-SPIRAM_OCT@FREENOVE_ESP32S3_CAM
- ESP32_GENERIC_S3-SPIRAM_OCT@DFRobot_ESP32S3
- ESP32_GENERIC_S3-SPIRAM_OCT@NEW_ESPS3_RE1_0
- ESP32_GENERIC_S3-SPIRAM_OCT@XENOIONEX

steps:
# Get the latest MicroPython release
Expand Down Expand Up @@ -126,18 +148,33 @@ jobs:
cd ~/micropython/ports/esp32
source ~/esp-idf/export.sh

# Check if a variant is defined and adjust the make command
IFS='-' read -r BOARD_NAME BOARD_VARIANT <<< "${{ matrix.board }}"
# Check if a variant is defined and adjust the idf.py command
IFS='@' read -r BUILD_TARGET CAMERA_MODEL <<< "${{ matrix.board }}"
IFS='-' read -r BOARD_NAME BOARD_VARIANT <<< "${BUILD_TARGET}"

if [ -n "${BOARD_VARIANT}" ]; then
make USER_C_MODULES=${{ github.workspace }}/src/micropython.cmake BOARD=$BOARD_NAME BOARD_VARIANT=$BOARD_VARIANT all
IDF_CMD="idf.py -D MICROPY_BOARD=$BOARD_NAME -D USER_C_MODULES=${{ github.workspace }}/src/micropython.cmake -D MICROPY_BOARD_VARIANT=$BOARD_VARIANT -B build-$BUILD_TARGET"
else
IDF_CMD="idf.py -D MICROPY_BOARD=$BOARD_NAME -D USER_C_MODULES=${{ github.workspace }}/src/micropython.cmake -B build-$BUILD_TARGET"
fi
if [ -n "${CAMERA_MODEL}" ]; then
echo "FW_NAME=${CAMERA_MODEL}" >> $GITHUB_ENV
FINAL_CMD="${IDF_CMD} -D MICROPY_CAMERA_MODEL=${CAMERA_MODEL} build"
else
make USER_C_MODULES=${{ github.workspace }}/src/micropython.cmake BOARD=$BOARD_NAME all
echo "FW_NAME=${BUILD_TARGET}" >> $GITHUB_ENV
FINAL_CMD="${IDF_CMD} build"
fi
mv ~/micropython/ports/esp32/build-${{ matrix.board }}/firmware.bin ~/${{ matrix.board }}.bin
make USER_C_MODULES=${{ github.workspace }}/src/micropython.cmake BOARD=$BOARD_NAME submodules
echo "Running command: $FINAL_CMD"
eval $FINAL_CMD
cd ~/micropython/ports/esp32/build-${BUILD_TARGET}
python ../makeimg.py sdkconfig bootloader/bootloader.bin partition_table/partition-table.bin micropython.bin firmware.bin micropython.uf2
mkdir -p ~/artifacts
mv ~/micropython/ports/esp32/build-${BUILD_TARGET}/firmware.bin ~/artifacts/firmware.bin

- name: Upload firmware artifact
uses: actions/upload-artifact@v4
with:
name: firmware-${{ matrix.board }}
path: ~/${{ matrix.board }}.bin
retention-days: 90
name: firmware-${{ env.FW_NAME }}
path: ~/artifacts/**
retention-days: 5
Loading