Skip to content

Commit 5320b74

Browse files
Initial implementation of building 2.0.16 libraries
1 parent 9d8008a commit 5320b74

File tree

4 files changed

+88
-7
lines changed

4 files changed

+88
-7
lines changed

.github/workflows/main.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,28 @@ jobs:
2323
git switch release/v4.4
2424
- name: Modify configs
2525
run: |
26-
for path in `ls /w/configs/defconfig.*`
26+
for path in `ls /w/mods/configs/defconfig.*`
2727
do
2828
config=$(basename $path)
29-
cat /w/configs/$config >>/opt/esp/lib-builder/configs/$config
29+
cat /w/mods/configs/$config >>/opt/esp/lib-builder/configs/$config
3030
done
31+
- name: Patch component update
32+
run: |
33+
ver=2.0.16
34+
wget https://github.com/espressif/arduino-esp32/releases/download/$ver/esp32-$ver.zip
35+
cd /w/
36+
unzip esp32-$ver.zip
37+
rm -f esp32-$ver.zip
38+
rm /opt/esp/lib-builder/tools/update-components.sh
39+
cp /w/mods/update-components.sh /opt/esp/lib-builder/tools
3140
- name: Build
3241
run: |
3342
cd /opt/esp/lib-builder/
34-
./build.sh -t esp32s3
43+
./build.sh -I v4.4.7 -t esp32s3
3544
- name: Zip artifacts
3645
run: |
37-
ver=2.0.17
46+
ver=2.0.16
3847
cd /w/
39-
wget https://github.com/espressif/arduino-esp32/releases/download/$ver/esp32-$ver.zip
40-
unzip esp32-$ver.zip
41-
rm -f esp32-$ver.zip
4248
cp -r /opt/esp/lib-builder/out/tools/* esp32-$ver/tools/
4349
zip -r esp32-$ver.zip esp32-$ver
4450
- name: Upload artifacts
File renamed without changes.
File renamed without changes.

mods/update-components.sh

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
#/bin/bash
2+
3+
source ./tools/config.sh
4+
5+
CAMERA_REPO_URL="https://github.com/espressif/esp32-camera.git"
6+
DL_REPO_URL="https://github.com/espressif/esp-dl.git"
7+
RMAKER_REPO_URL="https://github.com/espressif/esp-rainmaker.git"
8+
INSIGHTS_REPO_URL="https://github.com/espressif/esp-insights.git"
9+
DSP_REPO_URL="https://github.com/espressif/esp-dsp.git"
10+
LITTLEFS_REPO_URL="https://github.com/joltwallet/esp_littlefs.git"
11+
TINYUSB_REPO_URL="https://github.com/hathach/tinyusb.git"
12+
13+
#
14+
# CLONE/UPDATE ARDUINO
15+
#
16+
echo "Cloning ESP32 Arduino..."
17+
git clone $AR_REPO_URL "$AR_COMPS/arduino" && \
18+
git -C "$AR_COMPS/arduino" reset --hard d75795f5 && \
19+
git -C "$AR_COMPS/arduino" submodule update --init --recursive
20+
if [ $? -ne 0 ]; then exit 1; fi
21+
22+
#
23+
# CLONE/UPDATE ESP32-CAMERA
24+
#
25+
echo "Cloning ESP32 Camera..."
26+
git clone $CAMERA_REPO_URL "$AR_COMPS/esp32-camera" && \
27+
git -C "$AR_COMPS/esp32-camera" reset --hard f0bb429 && \
28+
git -C "$AR_COMPS/esp32-camera" submodule update --init --recursive
29+
if [ $? -ne 0 ]; then exit 1; fi
30+
31+
#
32+
# CLONE/UPDATE ESP-DL
33+
#
34+
echo "Updating ESP-DL..."
35+
git clone $DL_REPO_URL "$AR_COMPS/esp-dl" && \
36+
git -C "$AR_COMPS/esp-dl" reset --hard 0632d24 && \
37+
git -C "$AR_COMPS/esp-dl" submodule update --init --recursive
38+
if [ $? -ne 0 ]; then exit 1; fi
39+
40+
#
41+
# CLONE/UPDATE ESP-LITTLEFS
42+
#
43+
echo "Cloning ESP-LITTLEFS..."
44+
git clone $LITTLEFS_REPO_URL "$AR_COMPS/esp_littlefs" && \
45+
git -C "$AR_COMPS/esp_littlefs" reset --hard 41873c2 && \
46+
git -C "$AR_COMPS/esp_littlefs" submodule update --init --recursive
47+
if [ $? -ne 0 ]; then exit 1; fi
48+
49+
#
50+
# CLONE/UPDATE ESP-RAINMAKER
51+
#
52+
echo "Cloning ESP-RainMaker..."
53+
git clone $RMAKER_REPO_URL "$AR_COMPS/esp-rainmaker" && \
54+
git -C "$AR_COMPS/esp-rainmaker" reset --hard d8e9345 && \
55+
git -C "$AR_COMPS/esp-rainmaker" submodule update --init --recursive
56+
if [ $? -ne 0 ]; then exit 1; fi
57+
58+
#
59+
# CLONE/UPDATE ESP-DSP
60+
#
61+
echo "Cloning ESP-DSP..."
62+
git clone $DSP_REPO_URL "$AR_COMPS/espressif__esp-dsp" && \
63+
git -C "$AR_COMPS/espressif__esp-dsp" reset --hard 9b4a8b4 && \
64+
git -C "$AR_COMPS/espressif__esp-dsp" submodule update --init --recursive
65+
if [ $? -ne 0 ]; then exit 1; fi
66+
67+
#
68+
# CLONE/UPDATE TINYUSB
69+
#
70+
echo "Cloning TinyUSB..."
71+
git clone $TINYUSB_REPO_URL "$AR_COMPS/arduino_tinyusb/tinyusb" && \
72+
git -C "$AR_COMPS/arduino_tinyusb/tinyusb" reset --hard a0e5626bc && \
73+
git -C "$AR_COMPS/arduino_tinyusb/tinyusb" submodule update --init --recursive
74+
if [ $? -ne 0 ]; then exit 1; fi
75+

0 commit comments

Comments
 (0)