Skip to content

Commit 8b06ee6

Browse files
Merge branch 'add-esp32-s3-support' into add-freenove-board-support
2 parents f98fa41 + 2464d02 commit 8b06ee6

File tree

110 files changed

+2588
-1054
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+2588
-1054
lines changed

.github/label-commenter-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@
115115
labeled:
116116
issue:
117117
body: |
118-
See [Digital Digits](https://jomjol.github.io/neural-network-digital-counter-readout) resp. [Analogue Pointers](https://jomjol.github.io/neural-network-analog-needle-readout) for an overview of all trained data.
118+
See [Digits](https://jomjol.github.io/neural-network-digital-counter-readout) resp. [Analogue Pointers](https://jomjol.github.io/neural-network-analog-needle-readout) for an overview of all trained data.
119119
If your type is not contained it can be added to our training material, see [here](https://jomjol.github.io/AI-on-the-edge-device-docs/collect-new-images/).
120120
discussion:
121121
body: |
122-
See [Digital Digits](https://jomjol.github.io/neural-network-digital-counter-readout) resp. [Analogue Pointers](https://jomjol.github.io/neural-network-analog-needle-readout) for an overview of all trained data.
122+
See [Digits](https://jomjol.github.io/neural-network-digital-counter-readout) resp. [Analogue Pointers](https://jomjol.github.io/neural-network-analog-needle-readout) for an overview of all trained data.
123123
If your type is not contained it can be added to our training material, see [here](https://jomjol.github.io/AI-on-the-edge-device-docs/collect-new-images/).

.github/workflows/build.yaml

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ jobs:
5353
./code/.pio/build/esp32cam/partitions.bin
5454
./code/.pio/build/esp32cam/bootloader.bin
5555
./html/*
56+
./demo/*
5657
key: generated-files-${{ github.run_id }}
5758
restore-keys: generated-files # This matches above key as it is only used as a prefix. it the restores the nearest cache, see https://github.com/restore-keys:/blob/main/tips-and-workarounds.md#update-a-cache
5859

@@ -87,6 +88,11 @@ jobs:
8788
echo "Replacing variables..."
8889
cd html; find . -type f -exec sed -i 's/$COMMIT_HASH/${{ steps.vars.outputs.sha_short }}/g' {} \;
8990
91+
- name: Prepare Demo mode files
92+
run: |
93+
rm -rf ./demo
94+
mkdir demo
95+
cp -r ./sd-card/demo/* ./demo/
9096
9197
#########################################################################################
9298
## Pack for Update
@@ -97,6 +103,7 @@ jobs:
97103
# - /firmware.bin
98104
# - (optional) /html/* (inkl. subfolders)
99105
# - (optional) /config/*.tfl
106+
# - (optional) /demo/*
100107
runs-on: ubuntu-latest
101108
needs: build
102109

@@ -111,6 +118,7 @@ jobs:
111118
./code/.pio/build/esp32cam/partitions.bin
112119
./code/.pio/build/esp32cam/bootloader.bin
113120
./html/*
121+
./demo/*
114122
key: generated-files-${{ github.run_id }}
115123
restore-keys: generated-files # This matches above key as it is only used as a prefix. it the restores the nearest cache, see https://github.com/restore-keys:/blob/main/tips-and-workarounds.md#update-a-cache
116124

@@ -135,6 +143,9 @@ jobs:
135143
136144
- name: Add Web UI to update
137145
run: cp -r ./html ./update/
146+
147+
- name: Add Demo mode files to update
148+
run: cp -r ./demo ./update/
138149

139150
- name: Add CNN to update
140151
run: |
@@ -158,6 +169,7 @@ jobs:
158169
# remote_setup__version.zip file with following content:
159170
# - /firmware.bin
160171
# - /html/* (inkl. subfolders)
172+
# - /demo/*
161173
# - /config/*
162174
runs-on: ubuntu-latest
163175
needs: build
@@ -173,6 +185,7 @@ jobs:
173185
./code/.pio/build/esp32cam/partitions.bin
174186
./code/.pio/build/esp32cam/bootloader.bin
175187
./html/*
188+
./demo/*
176189
key: generated-files-${{ github.run_id }}
177190
restore-keys: generated-files # This matches above key as it is only used as a prefix. it the restores the nearest cache, see https://github.com/restore-keys:/blob/main/tips-and-workarounds.md#update-a-cache
178191

@@ -197,6 +210,9 @@ jobs:
197210
- name: Add Web UI to remote_setup
198211
run: cp -r ./html ./remote_setup/
199212

213+
- name: Add Demo mode files to update
214+
run: cp -r ./demo ./update/
215+
200216
- name: Add whole config folder to remote_setup
201217
run: |
202218
rm -rf ./remote_setup/config/
@@ -229,6 +245,7 @@ jobs:
229245
./code/.pio/build/esp32cam/partitions.bin
230246
./code/.pio/build/esp32cam/bootloader.bin
231247
./html/*
248+
./demo/*
232249
key: generated-files-${{ github.run_id }}
233250
restore-keys: generated-files # This matches above key as it is only used as a prefix. it the restores the nearest cache, see https://github.com/restore-keys:/blob/main/tips-and-workarounds.md#update-a-cache
234251

@@ -257,7 +274,9 @@ jobs:
257274
cp -f "./code/.pio/build/esp32cam/bootloader.bin" "manual_setup/bootloader.bin"
258275
cp -f "./code/.pio/build/esp32cam/partitions.bin" "manual_setup/partitions.bin"
259276
rm -rf ./sd-card/html
277+
rm -rf ./sd-card/demo
260278
cp -r ./html ./sd-card/ # Overwrite the Web UI with the preprocessed files
279+
cp -r ./demo ./sd-card/
261280
cd sd-card; zip -r ../manual_setup/sd-card.zip *; cd ..
262281
cd ./manual_setup
263282
@@ -271,7 +290,7 @@ jobs:
271290
#########################################################################################
272291
## Prepare and create release
273292
#########################################################################################
274-
release:
293+
prepare-release:
275294
runs-on: ubuntu-latest
276295
needs: [pack-for-update, pack-for-manual_setup, pack-for-remote_setup]
277296
if: startsWith(github.ref, 'refs/tags/')
@@ -331,34 +350,30 @@ jobs:
331350
332351
# extract the version used in next step
333352
- id: get_version
334-
if: startsWith(github.ref, 'refs/tags/')
335-
uses: Simply007/get-version-action@v2
353+
uses: drewg13/get-version-action@98dda2a47a257e202c2e6c2ed2e6072ec23f448e
336354

337355
# # the changelog [unreleased] will now be changed to the release version
338356
# - name: Update changelog
339357
# uses: thomaseizinger/keep-a-changelog-new-release@v1
340-
# if: startsWith(github.ref, 'refs/tags/')
341358
# with:
342359
# changelogPath: Changelog.md
343360
# version: ${{ steps.get_version.outputs.version-without-v }}
344361

345362
# # the release notes will be extracted from changelog
346363
# - name: Extract release notes
347364
# id: extract-release-notes
348-
# if: startsWith(github.ref, 'refs/tags/')
349365
# uses: ffurrer2/extract-release-notes@v1
350366
# with:
351367
# changelog_file: Changelog.md
352368

353369
# Releases should only be created on master by tagging the last commit.
354370
# all artifacts in firmware folder pushed to the release
355371
- name: Release
356-
uses: softprops/action-gh-release@v1
372+
uses: softprops/action-gh-release@v2.0.8
357373
# Note:
358374
# If you get the error "Resource not accessible by integration",
359375
# The access rights are not sufficient, see
360376
# https://github.com/softprops/action-gh-release/issues/232#issuecomment-1131379440
361-
if: startsWith(github.ref, 'refs/tags/')
362377
with:
363378
name: ${{ steps.get_version.outputs.version-without-v }}
364379
body: ${{ steps.extract-release-notes.outputs.release_notes }}
@@ -367,7 +382,6 @@ jobs:
367382
368383
# # Commit&Push Changelog to master branch. Must be manually merged back to rolling
369384
# - name: Commit changes and push changes
370-
# if: startsWith(github.ref, 'refs/tags/')
371385
# run: |
372386
# git config user.name github-actions
373387
# git config user.email [email protected]
@@ -380,8 +394,9 @@ jobs:
380394
## Update the Web Installer on a release
381395
#########################################################################################
382396
# Make sure to also update update-webinstaller.yml!
383-
update-web-installer:
384-
needs: [release]
397+
update-web-installer:
398+
if: github.event_name == 'release' && github.event.action == 'published' # Only run on release but not on prerelease
399+
needs: [prepare-release]
385400
environment:
386401
name: github-pages
387402
url: ${{ steps.deployment.outputs.page_url }}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# This updates the Contributors list in the README.md
2+
# it only gets run on:
3+
# - Manually triggered
4+
5+
name: Manually update contributors list
6+
7+
on:
8+
workflow_dispatch: # Run on manual trigger
9+
10+
jobs:
11+
manually-update-contributors-list:
12+
runs-on: ubuntu-latest
13+
name: A job to automatically update the contributors list in the README.md
14+
permissions:
15+
contents: write
16+
pull-requests: write
17+
steps:
18+
- name: Contribute List
19+
uses: akhilmhdh/[email protected]
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)