mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-09-30 14:46:38 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user