Skip to content

Commit 0cac6c3

Browse files
committed
fix(at): Add support for AT build step
1 parent 9cd487d commit 0cac6c3

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

.github/workflows/build_at.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,8 @@ jobs:
7979
./install.sh PLATFORM_ESP32C6 ESP32C6-4MB 22 23
8080
source export.sh
8181
idf.py build
82-
shopt -s extglob # enable extended globs for selective cleanup
83-
rm -rf build/!(*.bin|*.elf|*.map|bootloader|partition_table|customized_partitions|flasher_args.json|download.config|factory)
84-
if [ -d build/bootloader ]; then rm -rf build/bootloader/!(*.bin); fi
85-
if [ -d build/partition_table ]; then rm -rf build/partition_table/!(*.bin); fi
86-
shopt -u extglob
82+
${GITHUB_WORKSPACE}/ci/clean_build_artifacts.sh build
8783
zip -qur artifacts.zip build
88-
ls -la
8984
mv artifacts.zip ${GITHUB_WORKSPACE}/
9085
- uses: actions/upload-artifact@v4
9186
with:
@@ -109,12 +104,11 @@ jobs:
109104
${IDF_PATH}/install.sh --enable-ci
110105
. ${IDF_PATH}/export.sh
111106
cd ./components/esp_wifi_remote/examples/mqtt
112-
idf.py add-dependency wifi_remote_over_at
107+
# Add wifi_remote_over_at dependency to idf_component.yml (manually with override_path)
108+
echo -e " wifi_remote_over_at:\n version: '*'\n override_path: ../../../../wifi_remote_over_at" >> main/idf_component.yml
109+
cat main/idf_component.yml
113110
idf.py build -D SDKCONFIG_DEFAULTS=custom.sdkconfig.at
114-
shopt -s extglob # enable extended globs for selective cleanup
115-
rm -rf build/!(*.bin|*.elf|*.map|bootloader|config|partition_table|customized_partitions|flasher_args.json|download.config|factory)
116-
if [ -d build/bootloader ]; then rm -rf build/bootloader/!(*.bin); fi
117-
if [ -d build/partition_table ]; then rm -rf build/partition_table/!(*.bin); fi
111+
${GITHUB_WORKSPACE}/ci/clean_build_artifacts.sh build
118112
zip -qur artifacts.zip build
119113
- uses: actions/upload-artifact@v4
120114
with:

ci/clean_build_artifacts.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
shopt -s extglob # enable extended globs for selective cleanup
4+
BUILD_DIR=$1
5+
rm -rf $BUILD_DIR/!(*.bin|*.elf|*.map|bootloader|config|partition_table|customized_partitions|flasher_args.json|download.config|factory)
6+
if [ -d $BUILD_DIR/bootloader ]; then rm -rf $BUILD_DIR/bootloader/!(*.bin); fi
7+
if [ -d $BUILD_DIR/partition_table ]; then rm -rf $BUILD_DIR/partition_table/!(*.bin); fi
8+
shopt -u extglob # disable extended globs

0 commit comments

Comments
 (0)