well lets see lol
All checks were successful
Test compiling project / test (push) Successful in 2m22s

This commit is contained in:
2025-02-18 21:59:51 +01:00
parent 3b03c8619b
commit f213ecd345
2 changed files with 13 additions and 2 deletions

View File

@@ -21,8 +21,8 @@ jobs:
run: pio run -e ESP32_INA233
- name: Run PlatformIO build for INA226
run: pio run -e ESP32_INA226
- name: look at the output
run: ls -lah .pio/build/ESP32_INA233/ .pio/build/ESP32_INA226/
- name: Run PlatformIO build for SPIFFS (same in both platforms, so only one build is necessary)
run: pio run --target buildfs -e ESP32_INA233
- name: Upload firmware binary for INA233
run: |
VERSION=$(sed -n 's/#define current_software_version Version{[[:space:]]*\([0-9]\+\),[[:space:]]*\([0-9]\+\),[[:space:]]*\([0-9]\+\)}/\1.\2.\3/p' src/global_data/defines.h)
@@ -42,3 +42,13 @@ jobs:
-H "Content-Type: application/octet-stream" \
--data-binary @.pio/build/ESP32_INA226/firmware.bin \
https://iot.tobiasmaier.me/firmware/waterlevel/INA226/${VERSION}
- name: Upload SPIFFS binary
run: |
VERSION=$(cat data/version)
echo "Extracted version: $VERSION"
curl -X PUT \
-H "Content-Type: application/octet-stream" \
--data-binary @.pio/build/ESP32_INA233/spiffs.bin \
https://iot.tobiasmaier.me/filesystem/waterlevel/generic/${VERSION}