diff --git a/.github/workflows/build-esp32.yml b/.github/workflows/build-esp32.yml new file mode 100644 index 0000000000..2ee0f60511 --- /dev/null +++ b/.github/workflows/build-esp32.yml @@ -0,0 +1,54 @@ +name: Build WLED ESP32dev (v0.15.3-no-v) + +on: + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout current branch + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.11" + + - name: Cache PlatformIO + uses: actions/cache@v4 + with: + path: | + ~/.platformio + key: ${{ runner.os }}-pio-${{ hashFiles('platformio.ini') }} + restore-keys: | + ${{ runner.os }}-pio- + + - name: Install PlatformIO + run: pip install --upgrade platformio + + - name: Build firmware (esp32dev only) + run: pio run -e esp32dev + + - name: Prepare single output bin + run: | + set -e + mkdir -p out + # Обычно итоговый файл здесь: + if [ -f ".pio/build/esp32dev/firmware.bin" ]; then + cp ".pio/build/esp32dev/firmware.bin" "out/WLED_0.15.3_ESP32dev_no_v.bin" + else + echo "ERROR: firmware.bin not found" + ls -lah .pio/build/esp32dev || true + exit 1 + fi + ls -lh out/*.bin + sha256sum out/*.bin + + - name: Upload firmware artifact (single file) + uses: actions/upload-artifact@v4 + with: + name: WLED_0.15.3_ESP32dev_no_v + path: out/*.bin + + diff --git a/wled00/mqtt.cpp b/wled00/mqtt.cpp index 8aa996640b..eab81f543d 100644 --- a/wled00/mqtt.cpp +++ b/wled00/mqtt.cpp @@ -174,13 +174,13 @@ void publishMqtt() strcat_P(subuf, PSTR("/status")); mqtt->publish(subuf, 0, true, "online"); // retain message for a LWT - // TODO: use a DynamicBufferList. Requires a list-read-capable MQTT client API. - DynamicBuffer buf(1024); - bufferPrint pbuf(buf.data(), buf.size()); - XML_response(pbuf); - strlcpy(subuf, mqttDeviceTopic, 33); - strcat_P(subuf, PSTR("/v")); - mqtt->publish(subuf, 0, retainMqttMsg, buf.data(), pbuf.size()); // optionally retain message (#2263) + //// TODO: use a DynamicBufferList. Requires a list-read-capable MQTT client API. + //DynamicBuffer buf(1024); + //bufferPrint pbuf(buf.data(), buf.size()); + //XML_response(pbuf); + //strlcpy(subuf, mqttDeviceTopic, 33); + //strcat_P(subuf, PSTR("/v")); + //mqtt->publish(subuf, 0, retainMqttMsg, buf.data(), pbuf.size()); // optionally retain message (#2263) #endif }