Skip to content

Commit 328fb8a

Browse files
Merge branch 'add-freenove-board-support' into add-lorawan-support
2 parents 01403c6 + b01a84a commit 328fb8a

File tree

105 files changed

+4836
-3518
lines changed

Some content is hidden

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

105 files changed

+4836
-3518
lines changed

.github/workflows/build.yaml

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,19 @@ jobs:
8484
cd ../..
8585
8686
cp -r ./sd-card/html/* ./html/
87-
87+
rm -f ./html/edit_config_template.html # Remove the config page template, it is no longer needed
88+
8889
echo "Replacing variables..."
89-
cd html; find . -type f -exec sed -i 's/$COMMIT_HASH/${{ steps.vars.outputs.sha_short }}/g' {} \;
90+
cd html
91+
find . -type f -exec sed -i 's/$COMMIT_HASH/${{ steps.vars.outputs.sha_short }}/g' {} \;
92+
echo "compressing all html files..."
93+
find . -name "*.html" -type f -exec gzip {} \;
94+
find . -name "*.css" -type f -exec gzip {} \;
95+
find . -name "*.js" -type f -exec gzip {} \;
96+
find . -name "*.jpg" -type f -exec gzip {} \;
97+
find . -name "*.png" -type f -exec gzip {} \;
98+
find . -name "*.svg" -type f -exec gzip {} \;
99+
find . -name "*.map" -type f -exec gzip {} \;
90100
91101
- name: Prepare Demo mode files
92102
run: |
@@ -276,8 +286,9 @@ jobs:
276286
rm -rf ./sd-card/html
277287
rm -rf ./sd-card/demo
278288
cp -r ./html ./sd-card/ # Overwrite the Web UI with the preprocessed files
289+
rm -f ./sd-card/Readme.md
279290
cp -r ./demo ./sd-card/
280-
cd sd-card; zip -r ../manual_setup/sd-card.zip *; cd ..
291+
cd sd-card; rm -rf html/param-tooltips; zip -r ../manual_setup/sd-card.zip *; cd ..
281292
cd ./manual_setup
282293
283294
- name: Upload manual_setup.zip artifact (Firmware + Bootloader + Partitions + Web UI)
@@ -414,30 +425,31 @@ jobs:
414425

415426
- name: Get version of last release
416427
id: last_release
417-
uses: mindojo/get-latest-release@0b8ef1434d7468d6bffcc8263baff5c777f72321
428+
uses: joutvhu/get-release@v1
418429
with:
419-
myToken: ${{ github.token }}
420-
exclude_types: "draft|prerelease"
421-
view_top: 1
430+
latest: true
431+
prerelease: false
432+
env:
433+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
422434

423435
- name: Add binary to Web Installer and update manifest
424436
run: |
425437
echo "Updating Web installer to use firmware from ${{ steps.last_release.outputs.tag_name }}..."
426-
rm -f docs/binary/firmware.bin
438+
rm -f webinstaller/binary/firmware.bin
427439
wget ${{ github.server_url }}/${{ github.repository }}/releases/download/${{ steps.last_release.outputs.tag_name }}/AI-on-the-edge-device__update__${{ steps.last_release.outputs.tag_name }}.zip
428440
unzip AI-on-the-edge-device__update__${{ steps.last_release.outputs.tag_name }}.zip
429-
cp -f firmware.bin docs/binary/firmware.bin
441+
cp -f firmware.bin webinstaller/binary/firmware.bin
430442
echo "Updating index and manifest file..."
431-
sed -i 's/$VERSION/${{ steps.last_release.outputs.tag_name }}/g' docs/index.html
432-
sed -i 's/$VERSION/${{ steps.last_release.outputs.tag_name }}/g' docs/manifest.json
443+
sed -i 's/$VERSION/${{ steps.last_release.outputs.tag_name }}/g' webinstaller/index.html
444+
sed -i 's/$VERSION/${{ steps.last_release.outputs.tag_name }}/g' webinstaller/manifest.json
433445
434446
- name: Setup Pages
435447
uses: actions/configure-pages@v4
436448

437449
- name: Upload artifact
438450
uses: actions/upload-pages-artifact@v2
439451
with:
440-
path: 'docs'
452+
path: 'webinstaller'
441453

442454
- name: Deploy to GitHub Pages
443455
id: deployment
Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This updates the Web Installer with the files from the docs folder and the binary of the latest release
1+
# This updates the Web Installer with the files from the webinstaller folder and the binary of the latest release
22
# it only gets run on:
33
# - Manually triggered
44
# Make sure to also update the lower part of build.yml!
@@ -11,7 +11,7 @@ on:
1111
# branches:
1212
# - rolling
1313
# paths:
14-
# - docs # The path filter somehow does not work, so lets run it on every change to rolling
14+
# - webinstaller # The path filter somehow does not work, so lets run it on every change to rolling
1515

1616
jobs:
1717
manually-update-web-installer:
@@ -29,34 +29,35 @@ jobs:
2929
steps:
3030
- name: Checkout
3131
uses: actions/checkout@v3
32-
32+
3333
- name: Get version of last release
3434
id: last_release
35-
uses: mindojo/get-latest-release@0b8ef1434d7468d6bffcc8263baff5c777f72321
35+
uses: joutvhu/get-release@v1
3636
with:
37-
myToken: ${{ github.token }}
38-
exclude_types: "draft|prerelease"
39-
view_top: 1
37+
latest: true
38+
prerelease: false
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4041

4142
- name: Add binary to Web Installer and update manifest
4243
run: |
4344
echo "Updating Web installer to use firmware from ${{ steps.last_release.outputs.tag_name }}..."
44-
rm -f docs/binary/firmware.bin
45-
wget https://github.com/jomjol/AI-on-the-edge-device/releases/download/${{ steps.last_release.outputs.tag_name }}/AI-on-the-edge-device__update__${{ steps.last_release.outputs.tag_name }}.zip
45+
rm -f webinstaller/binary/firmware.bin
46+
wget ${{ github.server_url }}/${{ github.repository }}/releases/download/${{ steps.last_release.outputs.tag_name }}/AI-on-the-edge-device__update__${{ steps.last_release.outputs.tag_name }}.zip
4647
unzip AI-on-the-edge-device__update__${{ steps.last_release.outputs.tag_name }}.zip
47-
cp -f firmware.bin docs/binary/firmware.bin
48+
cp -f firmware.bin webinstaller/binary/firmware.bin
4849
echo "Updating index and manifest file..."
49-
sed -i 's/$VERSION/${{ steps.last_release.outputs.tag_name }}/g' docs/index.html
50-
sed -i 's/$VERSION/${{ steps.last_release.outputs.tag_name }}/g' docs/manifest.json
50+
sed -i 's/$VERSION/${{ steps.last_release.outputs.tag_name }}/g' webinstaller/index.html
51+
sed -i 's/$VERSION/${{ steps.last_release.outputs.tag_name }}/g' webinstaller/manifest.json
5152
5253
- name: Setup Pages
53-
uses: actions/configure-pages@v2
54+
uses: actions/configure-pages@v5
5455

5556
- name: Upload artifact
56-
uses: actions/upload-pages-artifact@v1
57+
uses: actions/upload-pages-artifact@v3
5758
with:
58-
path: 'docs'
59+
path: 'webinstaller'
5960

6061
- name: Deploy to GitHub Pages
6162
id: deployment
62-
uses: actions/deploy-pages@v1
63+
uses: actions/deploy-pages@v4

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
[submodule "code/components/stb"]
1111
path = code/components/stb
1212
url = https://github.com/nothings/stb.git
13+
[submodule "code/components/esp-protocols"]
14+
path = code/components/esp-protocols
15+
url = https://github.com/espressif/esp-protocols.git
1316
[submodule "code/components/RadioLib"]
1417
path = code/components/RadioLib
1518
url = https://github.com/jgromes/RadioLib

0 commit comments

Comments
 (0)