Skip to content

Commit 962c30c

Browse files
committed
skip one more sketch and try again PIO
1 parent 3a9e981 commit 962c30c

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

.github/scripts/install-platformio-esp32.sh

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ replace_script+="data['packages']['toolchain-xtensa-esp32s2']['version']='$TOOLC
3333
replace_script+="data['packages']['toolchain-riscv32-esp']['version']='$TOOLCHAIN_VERSION';"
3434
# Add ESP32-S3 Toolchain
3535
replace_script+="data['packages'].update({'toolchain-xtensa-esp32s3':{'type':'toolchain','optional':True,'owner':'$ESPRESSIF_ORGANIZATION_NAME','version':'$TOOLCHAIN_VERSION'}});"
36+
replace_script+="data['packages']['toolchain-xtensa-esp32'].update({'optional':False});"
3637
# esptool.py may require an upstream version (for now platformio is the owner)
3738
replace_script+="data['packages']['tool-esptoolpy']['version']='$ESPTOOLPY_VERSION';"
3839
# Save results

.github/scripts/on-push.sh

+13-3
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ if [ "$BUILD_PIO" -eq 0 ]; then
7777
$ARDUINO_ESP32_PATH/libraries/WiFi/examples/WiFiClient/WiFiClient.ino\
7878
"
7979

80-
build "esp32" $FQBN_ESP32 $CHUNK_INDEX $CHUNKS_CNT $SKETCHES_ESP32
81-
build "esp32s2" $FQBN_ESP32S2 $CHUNK_INDEX $CHUNKS_CNT $SKETCHES_ESP32XX
8280
build "esp32s3" $FQBN_ESP32S3 $CHUNK_INDEX $CHUNKS_CNT $SKETCHES_ESP32
81+
build "esp32s2" $FQBN_ESP32S2 $CHUNK_INDEX $CHUNKS_CNT $SKETCHES_ESP32XX
8382
build "esp32c3" $FQBN_ESP32C3 $CHUNK_INDEX $CHUNKS_CNT $SKETCHES_ESP32XX
83+
build "esp32" $FQBN_ESP32 $CHUNK_INDEX $CHUNKS_CNT $SKETCHES_ESP32
8484
else
8585
source ./${SCRIPTS_DIR}/install-platformio-esp32.sh
8686
# PlatformIO ESP32 Test
@@ -98,8 +98,18 @@ else
9898
# build_pio_sketch "$BOARD" "$OPTIONS" "$PLATFORMIO_ESP32_PATH/libraries/WiFiClientSecure/examples/WiFiClientSecure/WiFiClientSecure.ino"
9999

100100
python -m platformio ci --board "$BOARD" "$PLATFORMIO_ESP32_PATH/libraries/WiFi/examples/WiFiClient" --project-option="board_build.mcu = esp32s2" --project-option="board_build.partitions = huge_app.csv"
101-
python -m platformio ci --board "$BOARD" "$PLATFORMIO_ESP32_PATH/libraries/WiFi/examples/WiFiClient" --project-option="board_build.mcu = esp32s3" --project-option="board_build.partitions = huge_app.csv"
102101
python -m platformio ci --board "$BOARD" "$PLATFORMIO_ESP32_PATH/libraries/WiFi/examples/WiFiClient" --project-option="board_build.mcu = esp32c3" --project-option="board_build.partitions = huge_app.csv"
103102

103+
echo "Hacking in S3 support ..."
104+
replace_script="import json; import os;"
105+
replace_script+="fp=open(os.path.expanduser('~/.platformio/platforms/espressif32/platform.json'), 'r+');"
106+
replace_script+="data=json.load(fp);"
107+
replace_script+="data['packages']['toolchain-xtensa-esp32']['optional']=True;"
108+
replace_script+="data['packages']['toolchain-xtensa-esp32s3']['optional']=False;"
109+
replace_script+="fp.seek(0);fp.truncate();json.dump(data, fp, indent=2);fp.close()"
110+
python -c "$replace_script"
111+
112+
python -m platformio ci --board "$BOARD" "$PLATFORMIO_ESP32_PATH/libraries/WiFi/examples/WiFiClient" --project-option="board_build.mcu = esp32s3" --project-option="board_build.partitions = huge_app.csv"
113+
104114
#build_pio_sketches "$BOARD" "$OPTIONS" "$PLATFORMIO_ESP32_PATH/libraries"
105115
fi

libraries/ESP32/examples/I2S/HiFreq_ADC/.skip.esp32s3

Whitespace-only changes.

0 commit comments

Comments
 (0)