ci(sim): show the real version in the WASM demo's splash

build_wasm.sh now takes FIRMWARE_VERSION (tag name for a release,
dev-<commit> otherwise) exported by build-solo-sim.yml, so the live demo
no longer falls back to "dev-<compile date>" on tagged releases.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Jakub
2026-09-19 14:22:27 +02:00
co-authored by Claude Sonnet 5
parent d49acc4e55
commit dafd6c1266
2 changed files with 19 additions and 0 deletions
+10
View File
@@ -46,7 +46,17 @@ jobs:
echo "emsdk 6.0.9 already cached"
fi
- name: Resolve build version
run: |
if [ "$GITHUB_REF_TYPE" = "tag" ]; then
echo "BUILD_VERSION=${GITHUB_REF_NAME}" >> $GITHUB_ENV
else
echo "BUILD_VERSION=dev-$(git rev-parse --short HEAD)" >> $GITHUB_ENV
fi
- name: Build companion WASM
env:
FIRMWARE_VERSION: ${{ env.BUILD_VERSION }}
run: variants/sim/build_wasm.sh
- name: Build repeater WASM