Repeater, room server, sensor, companion: the same commit builds into the same firmware, byte for byte

Changelog: Repeater, room server, sensor, companion: the same commit builds into the same firmware, byte for byte (anyone can check a release against the source)
Changelog-cs: Repeater, room server, sensor, companion: ze stejného commitu vznikne bajtově stejný firmware (vydání se dá ověřit proti zdrojákům)
This commit is contained in:
tth committed 2026-12-04 01:18:20 +01:00
1 parent 504021f2c7
commit e440eb1a6b
5 files changed
+125 -28

No files matched your search

+30
View File
@@ -203,6 +203,34 @@ jobs:
- name: Setup Build Environment
uses: ./.github/actions/setup-build-environment
- name: Setup ccache
shell: bash
run: |
set -euo pipefail
if ! command -v ccache >/dev/null; then
SUDO="$(command -v sudo || true)"
$SUDO apt-get update -qq
$SUDO apt-get install -y -qq ccache
fi
ccache --version | head -1
{
[ -f tools/ccache_wrap.py ] && echo "PLATFORMIO_EXTRA_SCRIPTS=pre:tools/ccache_wrap.py"
echo "CCACHE_DIR=$HOME/.cache/ccache"
echo "CCACHE_MAXSIZE=2G"
echo "CCACHE_COMPILERCHECK=content"
echo "CCACHE_BASEDIR=$GITHUB_WORKSPACE"
echo "CCACHE_NOHASHDIR=true"
} >>"$GITHUB_ENV"
- name: Compiler cache
uses: actions/cache@v5
with:
path: ~/.cache/ccache
key: ccache-pub-${{ hashFiles('platformio.ini', 'platformio.lock') }}-${{ github.run_id }}
restore-keys: |
ccache-pub-${{ hashFiles('platformio.ini', 'platformio.lock') }}-
ccache-pub-
- name: Build and package
id: build
env:
@@ -355,9 +383,11 @@ jobs:
pio run -j "$PIO_JOBS" -e "$env" || return 1
[ -f "$bdir/$1/$env/firmware.zip" ] || pio run -j "$PIO_JOBS" -t mergebin -e "$env" # ESP32
}
ccache -z >/dev/null 2>&1 || true
t1=$SECONDS
par compile "${arts[@]}"
echo "compiled ${#arts[@]} artifacts in $((SECONDS - t1)) s ($PARALLEL at a time)"
ccache -s || true
report "build" "${arts[@]}"
# 3) package in order: manifest.json, deltas and the version are
# written one artifact at a time. The OTA tools read .pio/build/<env>,