File tree Expand file tree Collapse file tree 1 file changed +36
-3
lines changed
Expand file tree Collapse file tree 1 file changed +36
-3
lines changed Original file line number Diff line number Diff line change 88
99 steps :
1010 - name : Check out repository
11- uses : actions/checkout@v2
11+ uses : actions/checkout@v4
1212
13- - uses : arduino/compile-sketches@v1
13+ - name : Compile sketch
14+ uses : arduino/compile-sketches@v1
1415 with :
1516 fqbn : " esp32:esp32:esp32s2"
1617 platforms : |
2526 - name: esp32-waveshare-epd
2627 source-path: ./esp32-waveshare-epd
2728 sketch-paths : |
28- - .
29+ - .
30+
31+ - name : Stage firmware into ./build/... and rename to FIRMWARE.BIN
32+ shell : bash
33+ run : |
34+ set -euo pipefail
35+
36+ BIN="$(
37+ find /home/runner -type f -name 'OpenCO2_Sensor.ino.bin' \
38+ ! -name '*bootloader*' \
39+ ! -name '*partitions*' \
40+ ! -name '*ota_data_initial*' \
41+ 2>/dev/null \
42+ | head -n 1
43+ )"
44+
45+ if [[ -z "${BIN:-}" || ! -f "$BIN" ]]; then
46+ echo "ERROR: Could not find OpenCO2_Sensor.ino.bin on runner."
47+ echo "Debug: listing any .ino.bin files under /home/runner:"
48+ find /home/runner -type f -name '*.ino.bin' 2>/dev/null | head -n 200 || true
49+ exit 1
50+ fi
51+
52+ echo "Found firmware: $BIN"
53+ mkdir -p build/esp32.esp32.esp32s2
54+ cp "$BIN" build/esp32.esp32.esp32s2/OpenCO2_Sensor.ino.bin
55+ cp build/esp32.esp32.esp32s2/OpenCO2_Sensor.ino.bin FIRMWARE.BIN
56+
57+ - name : Upload FIRMWARE.BIN artifact
58+ uses : actions/upload-artifact@v4
59+ with :
60+ name : FIRMWARE.BIN
61+ path : FIRMWARE.BIN
You can’t perform that action at this time.
0 commit comments