mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-07-26 14:58:12 +00:00
Trigger workflow on tags matching plus_* instead of wio-tracker-v*. Extract version as v<x.y> from plus_<x.y> tag format. Also update firmware filenames in README to match renamed env names. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
93 lines
2.3 KiB
YAML
93 lines
2.3 KiB
YAML
name: Build Wio Tracker L1 Firmwares
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
tags:
|
|
- 'plus_*'
|
|
|
|
env:
|
|
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
|
|
|
|
jobs:
|
|
|
|
build-oled:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
|
|
- name: Clone Repo
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Extract Version from Git Tag
|
|
run: echo "GIT_TAG_VERSION=v${GITHUB_REF_NAME#plus_}" >> $GITHUB_ENV
|
|
|
|
- name: Setup Build Environment
|
|
uses: ./.github/actions/setup-build-environment
|
|
|
|
- name: Build Dual OLED Firmware
|
|
env:
|
|
FIRMWARE_VERSION: ${{ env.GIT_TAG_VERSION }}
|
|
run: /usr/bin/env bash build.sh build-firmware WioTrackerL1_companion_dual
|
|
|
|
- name: Upload OLED Firmware
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: wio-tracker-l1-oled-firmware
|
|
path: out
|
|
|
|
build-eink:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
|
|
- name: Clone Repo
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Extract Version from Git Tag
|
|
run: echo "GIT_TAG_VERSION=v${GITHUB_REF_NAME#plus_}" >> $GITHUB_ENV
|
|
|
|
- name: Setup Build Environment
|
|
uses: ./.github/actions/setup-build-environment
|
|
|
|
- name: Build Dual E-ink Firmware
|
|
env:
|
|
FIRMWARE_VERSION: ${{ env.GIT_TAG_VERSION }}
|
|
run: /usr/bin/env bash build.sh build-firmware WioTrackerL1Eink_companion_dual
|
|
|
|
- name: Upload E-ink Firmware
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: wio-tracker-l1-eink-firmware
|
|
path: out
|
|
|
|
release:
|
|
needs: [build-oled, build-eink]
|
|
runs-on: ubuntu-latest
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
steps:
|
|
|
|
- name: Extract Version from Git Tag
|
|
run: echo "GIT_TAG_VERSION=v${GITHUB_REF_NAME#plus_}" >> $GITHUB_ENV
|
|
|
|
- name: Download OLED Firmware
|
|
uses: actions/download-artifact@v4
|
|
with:
|
|
name: wio-tracker-l1-oled-firmware
|
|
path: out
|
|
|
|
- name: Download E-ink Firmware
|
|
uses: actions/download-artifact@v4
|
|
with:
|
|
name: wio-tracker-l1-eink-firmware
|
|
path: out
|
|
|
|
- name: Create Release
|
|
uses: softprops/action-gh-release@v2
|
|
with:
|
|
name: Wio Tracker L1 Firmware ${{ env.GIT_TAG_VERSION }}
|
|
body: ""
|
|
draft: true
|
|
files: out/*.uf2
|