mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-07-26 14:58:12 +00:00
##*- strips to the last hyphen, so wio-tracker-v1.15-plus.1.3 yielded "plus.1.3" instead of "v1.15-plus.1.3". Switch to #*-v (shortest prefix ending with -v) which preserves hyphens inside the version string. Also remove the -Plus suffix appended in build_wio_tracker_l1_firmwares() since the version scheme already encodes "plus" in the tag/version string, making the suffix redundant and producing doubled output like "plus.1.3-Plus". Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
32 lines
898 B
YAML
32 lines
898 B
YAML
name: Setup Build Environment
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
|
|
- name: Init Cache
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: |
|
|
~/.cache/pip
|
|
~/.platformio/.cache
|
|
key: ${{ runner.os }}-pio
|
|
|
|
- name: Install Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.11'
|
|
|
|
- name: Install PlatformIO
|
|
shell: bash
|
|
run: |
|
|
pip install --upgrade platformio
|
|
|
|
# a git tag of "room-server-v1.2.3" should set "v1.2.3" as GIT_TAG_VERSION
|
|
# a git tag of "wio-tracker-v1.15-plus.1.3" should set "v1.15-plus.1.3" as GIT_TAG_VERSION
|
|
# Strip the shortest prefix ending with "-v" so hyphens in the version are preserved.
|
|
- name: Extract Version from Git Tag
|
|
shell: bash
|
|
run: |
|
|
GIT_TAG_NAME="${GITHUB_REF#refs/tags/}"
|
|
echo "GIT_TAG_VERSION=v${GIT_TAG_NAME#*-v}" >> $GITHUB_ENV
|