Skip to content

Commit bfd8159

Browse files
authored
Merge branch 'master' into feature/config_ui
2 parents 88da64d + 06899c1 commit bfd8159

File tree

7 files changed

+50
-21
lines changed

7 files changed

+50
-21
lines changed

.github/workflows/cron.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
matrix:
2828
idf_branch: [release/v5.1, release/v4.4] #, release/v3.3]
2929
steps:
30-
- uses: actions/checkout@v3
30+
- uses: actions/checkout@v4
3131
with:
3232
fetch-depth: 0
3333
- name: Install dependencies
@@ -41,8 +41,14 @@ jobs:
4141
run: |
4242
git checkout ${{ matrix.idf_branch }} || echo "Using master branch"
4343
bash ./tools/cron.sh
44+
- name: Upload build
45+
if: failure()
46+
uses: actions/upload-artifact@v4
47+
with:
48+
name: build
49+
path: build
4450
- name: Upload archive
45-
uses: actions/upload-artifact@v3
51+
uses: actions/upload-artifact@v4
4652
with:
4753
name: artifacts
4854
path: dist

.github/workflows/push.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,21 @@ jobs:
2020
target: [esp32, esp32s2, esp32s3, esp32c2, esp32c3, esp32c6, esp32h2]
2121
fail-fast: false
2222
steps:
23-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v4
2424
- name: Install dependencies
2525
run: bash ./tools/prepare-ci.sh
2626
- name: Build Libs for ${{ matrix.target }}
2727
run: bash ./build.sh -e -t ${{ matrix.target }}
28+
- name: Upload build
29+
if: failure()
30+
uses: actions/upload-artifact@v4
31+
with:
32+
name: build-${{ matrix.target }}
33+
path: build
2834
- name: Upload archive
29-
uses: actions/upload-artifact@v3
35+
uses: actions/upload-artifact@v4
3036
with:
31-
name: artifacts
37+
name: artifacts-${{ matrix.target }}
3238
path: dist
3339

3440
combine-artifacts:
@@ -37,23 +43,24 @@ jobs:
3743
runs-on: ubuntu-latest
3844
steps:
3945
- name: Download artifacts
40-
uses: actions/download-artifact@v3
46+
uses: actions/download-artifact@v4
4147
with:
42-
name: artifacts
4348
path: dist
49+
pattern: artifacts-*
50+
merge-multiple: true
4451
- shell: bash
4552
run: |
4653
mkdir -p out
4754
find dist -name 'arduino-esp32-libs-esp*.tar.gz' -exec tar zxvf {} -C out \;
4855
cd out/tools/esp32-arduino-libs && tar zcf ../../../dist/esp32-arduino-libs.tar.gz * && cd ../../..
4956
cp out/package_esp32_index.template.json dist/package_esp32_index.template.json
5057
- name: Upload full esp32-arduino-libs archive
51-
uses: actions/upload-artifact@v3
58+
uses: actions/upload-artifact@v4
5259
with:
5360
name: esp32-arduino-libs
5461
path: dist/esp32-arduino-libs.tar.gz
5562
- name: Upload package_esp32_index.template.json
56-
uses: actions/upload-artifact@v3
63+
uses: actions/upload-artifact@v4
5764
with:
5865
name: package-esp32-index-json
5966
path: dist/package_esp32_index.template.json

.github/workflows/repository_dispatch.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
name: Dispatch Event
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v3
10+
- uses: actions/checkout@v4
1111
- name: Install dependencies
1212
run: bash ./tools/prepare-ci.sh
1313
- name: Handle Event
@@ -16,8 +16,14 @@ jobs:
1616
GIT_AUTHOR_EMAIL: ${{ secrets.PUSH_EMAIL }}
1717
GIT_COMMITTER_EMAIL: ${{ secrets.PUSH_EMAIL }}
1818
run: bash ./tools/repository_dispatch.sh
19+
- name: Upload build
20+
if: failure()
21+
uses: actions/upload-artifact@v4
22+
with:
23+
name: build
24+
path: build
1925
- name: Upload archive
20-
uses: actions/upload-artifact@v3
26+
uses: actions/upload-artifact@v4
2127
with:
2228
name: artifacts
2329
path: dist

build.sh

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ if [ -z $DEPLOY_OUT ]; then
2121
fi
2222

2323
function print_help() {
24-
echo "Usage: build.sh [-s] [-A <arduino_branch>] [-I <idf_branch>] [-D <debug_level>] [-i <idf_commit>] [-c <path>] [-t <target>] [-b <build|menuconfig|reconfigure|idf_libs|copy_bootloader|mem_variant>] [config ...]"
24+
echo "Usage: build.sh [-s] [-A <arduino_branch>] [-I <idf_branch>] [-D <debug_level>] [-i <idf_commit>] [-c <path>] [-t <target>] [-b <build|menuconfig|reconfigure|idf-libs|copy-bootloader|mem-variant>] [config ...]"
2525
echo " -s Skip installing/updating of ESP-IDF and all components"
2626
echo " -A Set which branch of arduino-esp32 to be used for compilation"
2727
echo " -I Set which branch of ESP-IDF to be used for compilation"
@@ -71,9 +71,9 @@ while getopts ":A:I:i:c:t:b:D:sde" opt; do
7171
if [ "$b" != "build" ] &&
7272
[ "$b" != "menuconfig" ] &&
7373
[ "$b" != "reconfigure" ] &&
74-
[ "$b" != "idf_libs" ] &&
75-
[ "$b" != "copy_bootloader" ] &&
76-
[ "$b" != "mem_variant" ]; then
74+
[ "$b" != "idf-libs" ] &&
75+
[ "$b" != "copy-bootloader" ] &&
76+
[ "$b" != "mem-variant" ]; then
7777
print_help
7878
fi
7979
BUILD_TYPE="$b"
@@ -185,7 +185,7 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
185185

186186
echo "* Build IDF-Libs: $idf_libs_configs"
187187
rm -rf build sdkconfig
188-
idf.py -DIDF_TARGET="$target" -DSDKCONFIG_DEFAULTS="$idf_libs_configs" idf_libs
188+
idf.py -DIDF_TARGET="$target" -DSDKCONFIG_DEFAULTS="$idf_libs_configs" idf-libs
189189
if [ $? -ne 0 ]; then exit 1; fi
190190

191191
if [ "$target" == "esp32s3" ]; then
@@ -214,7 +214,7 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
214214

215215
echo "* Build BootLoader: $bootloader_configs"
216216
rm -rf build sdkconfig
217-
idf.py -DIDF_TARGET="$target" -DSDKCONFIG_DEFAULTS="$bootloader_configs" copy_bootloader
217+
idf.py -DIDF_TARGET="$target" -DSDKCONFIG_DEFAULTS="$bootloader_configs" copy-bootloader
218218
if [ $? -ne 0 ]; then exit 1; fi
219219
done
220220

@@ -231,7 +231,7 @@ for target_json in `jq -c '.targets[]' configs/builds.json`; do
231231

232232
echo "* Build Memory Variant: $mem_configs"
233233
rm -rf build sdkconfig
234-
idf.py -DIDF_TARGET="$target" -DSDKCONFIG_DEFAULTS="$mem_configs" mem_variant
234+
idf.py -DIDF_TARGET="$target" -DSDKCONFIG_DEFAULTS="$mem_configs" mem-variant
235235
if [ $? -ne 0 ]; then exit 1; fi
236236
done
237237
done
@@ -276,7 +276,11 @@ fi
276276

277277
# Generate PlatformIO manifest file
278278
if [ "$BUILD_TYPE" = "all" ]; then
279-
python3 ./tools/gen_platformio_manifest.py -o "$TOOLS_JSON_OUT/" -s $(git -C "$IDF_PATH" symbolic-ref --short HEAD || git -C "$IDF_PATH" tag --points-at HEAD) -c $(git -C "$IDF_PATH" rev-parse --short HEAD)
279+
pushd $IDF_PATH
280+
ibr=$(git describe --all --exact-match 2>/dev/null)
281+
ic=$(git -C "$IDF_PATH" rev-parse --short HEAD)
282+
popd
283+
python3 ./tools/gen_platformio_manifest.py -o "$TOOLS_JSON_OUT/" -s "$ibr" -c "$ic"
280284
if [ $? -ne 0 ]; then exit 1; fi
281285
fi
282286

configs/defconfig.common

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ CONFIG_ARDUHAL_ESP_LOG=y
44
CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE=y
55
CONFIG_BOOTLOADER_SKIP_VALIDATE_IN_DEEP_SLEEP=y
66
CONFIG_BT_ENABLED=y
7+
CONFIG_BT_BLE_BLUFI_ENABLE=y
78
CONFIG_BT_BLE_42_FEATURES_SUPPORTED=y
89
CONFIG_BT_BTC_TASK_STACK_SIZE=8192
910
CONFIG_BT_BTU_TASK_STACK_SIZE=8192
@@ -21,6 +22,10 @@ CONFIG_ESP_SYSTEM_EVENT_TASK_STACK_SIZE=2048
2122
CONFIG_ESP_TASK_WDT_PANIC=y
2223
CONFIG_ESP_TIMER_TASK_STACK_SIZE=4096
2324
CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y
25+
CONFIG_ESP_WIFI_11KV_SUPPORT=y
26+
CONFIG_ESP_WIFI_SCAN_CACHE=y
27+
CONFIG_ESP_WIFI_MBO_SUPPORT=y
28+
CONFIG_ESP_WIFI_11R_SUPPORT=y
2429
CONFIG_ESP_WIFI_FTM_ENABLE=y
2530
CONFIG_ESP_WIFI_STATIC_RX_BUFFER_NUM=8
2631
CONFIG_ESP_WIFI_STATIC_TX_BUFFER_NUM=8
@@ -54,6 +59,8 @@ CONFIG_LWIP_TCP_RTO_TIME=3000
5459
CONFIG_LWIP_TCPIP_TASK_STACK_SIZE=2560
5560
CONFIG_LWIP_TCPIP_TASK_AFFINITY_CPU0=y
5661
CONFIG_LWIP_MAX_SOCKETS=16
62+
CONFIG_LWIP_IP_FORWARD=y
63+
CONFIG_LWIP_IPV4_NAPT=y
5764
CONFIG_LWIP_DHCP_RESTORE_LAST_IP=y
5865
CONFIG_LWIP_DHCP_OPTIONS_LEN=128
5966
CONFIG_LWIP_SNTP_MAX_SERVERS=3

configs/defconfig.esp32c3

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
CONFIG_BT_BLE_BLUFI_ENABLE=y
21
CONFIG_RTC_CLK_CAL_CYCLES=576
32
# CONFIG_ESP_TASK_WDT_CHECK_IDLE_TASK_CPU0 is not set
43
CONFIG_FREERTOS_IDLE_TASK_STACKSIZE=2304

tools/prepare-ci.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
22

3-
sudo apt-get install -y git wget curl libssl-dev libncurses-dev flex bison gperf python3 cmake ninja-build ccache
3+
sudo apt update && sudo apt install -y git wget curl libssl-dev libncurses-dev flex bison gperf python3 cmake ninja-build ccache
44
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && python3 get-pip.py && \
55
pip3 install setuptools pyserial click future wheel cryptography pyparsing pyelftools

0 commit comments

Comments
 (0)