File tree Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change 49
49
uses : actions/upload-artifact@v4
50
50
with :
51
51
name : slave_firmware
52
- path : wifi_copro_fw
52
+ path : ./esp-hosted-mcu/slave/ wifi_copro_fw
53
53
54
54
combine-artifacts :
55
55
name : Combine artifacts and create framework
82
82
echo "IDF_BRANCH=$IDF_BRANCH"
83
83
echo "IDF_COMMIT=$IDF_COMMIT"
84
84
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
+
85
108
7z a -mx=9 -tzip -xr'!.*' framework-arduinoespressif32-${idf_version_string}.zip framework-arduinoespressif32/
86
109
87
110
- name : Set tag name
You can’t perform that action at this time.
0 commit comments