Skip to content

Commit bc4dcc5

Browse files
authored
Update parallel_build.yaml
1 parent 49179e8 commit bc4dcc5

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

.github/workflows/parallel_build.yaml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
uses: actions/upload-artifact@v4
5050
with:
5151
name: slave_firmware
52-
path: wifi_copro_fw
52+
path: ./esp-hosted-mcu/slave/wifi_copro_fw
5353

5454
combine-artifacts:
5555
name: Combine artifacts and create framework
@@ -82,6 +82,29 @@ jobs:
8282
echo "IDF_BRANCH=$IDF_BRANCH"
8383
echo "IDF_COMMIT=$IDF_COMMIT"
8484
idf_version_string="${IDF_BRANCH//\//_}-$IDF_COMMIT"
85+
86+
# Update sdkconfig files with slave firmware version
87+
if [ -f "framework-arduinoespressif32/tools/slave_firmware/coprocessor_fw_version.txt" ]; then
88+
FIRMWARE_VERSION=$(cat framework-arduinoespressif32/tools/slave_firmware/coprocessor_fw_version.txt)
89+
echo "Found firmware version: $FIRMWARE_VERSION"
90+
91+
# Array of MCU targets that need sdkconfig updates
92+
mcu_targets=("esp32" "esp32s2" "esp32s3" "esp32c2" "esp32c3" "esp32c5" "esp32c6" "esp32h2" "esp32p4")
93+
94+
for mcu in "${mcu_targets[@]}"; do
95+
sdkconfig_path="framework-arduinoespressif32/tools/esp32-arduino-libs/$mcu/sdkconfig"
96+
if [ -f "$sdkconfig_path" ]; then
97+
echo "Updating $sdkconfig_path with firmware version: $FIRMWARE_VERSION"
98+
# Remove existing CONFIG_ESP_HOSTED_IDF_SLAVE_TARGET line and add new one at the beginning
99+
sed -i -e '/^CONFIG_ESP_HOSTED_IDF_SLAVE_TARGET/d' -e "1i CONFIG_ESP_HOSTED_IDF_SLAVE_TARGET=\"$FIRMWARE_VERSION\"" "$sdkconfig_path"
100+
else
101+
echo "Warning: sdkconfig file not found at $sdkconfig_path"
102+
fi
103+
done
104+
else
105+
echo "Warning: coprocessor_fw_version.txt not found"
106+
fi
107+
85108
7z a -mx=9 -tzip -xr'!.*' framework-arduinoespressif32-${idf_version_string}.zip framework-arduinoespressif32/
86109
87110
- name: Set tag name

0 commit comments

Comments
 (0)