mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-07-26 23:08:11 +00:00
ci: build lemon-font firmware alongside standard on wio-tracker-v* tags
Add build-lemon-font job that checks out the font-experiments branch and builds with FIRMWARE_VERSION suffixed with -lemon-font, producing files like WioTrackerL1_*-v1.15-plus.1.7-lemon-font-SHA.uf2. A separate release job collects artifacts from both builds into one draft release. Tag pattern narrowed from wio-tracker-* to wio-tracker-v* to avoid triggering on wio-tracker-lemon-* tags. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -7,11 +7,11 @@ on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
tags:
|
||||
- 'wio-tracker-*'
|
||||
- 'wio-tracker-v*'
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
build-standard:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
@@ -32,9 +32,52 @@ jobs:
|
||||
name: wio-tracker-l1-firmwares
|
||||
path: out
|
||||
|
||||
build-lemon-font:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
- name: Clone Repo (font-experiments branch)
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: font-experiments
|
||||
|
||||
- name: Setup Build Environment
|
||||
uses: ./.github/actions/setup-build-environment
|
||||
|
||||
- name: Build Lemon Font Firmwares
|
||||
env:
|
||||
FIRMWARE_VERSION: ${{ env.GIT_TAG_VERSION }}-lemon-font
|
||||
run: /usr/bin/env bash build.sh build-wio-tracker-l1-firmwares
|
||||
|
||||
- name: Upload Workflow Artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: wio-tracker-l1-lemon-font-firmwares
|
||||
path: out
|
||||
|
||||
release:
|
||||
needs: [build-standard, build-lemon-font]
|
||||
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#*-v}" >> $GITHUB_ENV
|
||||
|
||||
- name: Download Standard Firmwares
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: wio-tracker-l1-firmwares
|
||||
path: out
|
||||
|
||||
- name: Download Lemon Font Firmwares
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: wio-tracker-l1-lemon-font-firmwares
|
||||
path: out
|
||||
|
||||
- name: Create Release
|
||||
uses: softprops/action-gh-release@v2
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
with:
|
||||
name: Wio Tracker L1 Firmware ${{ env.GIT_TAG_VERSION }}
|
||||
body: ""
|
||||
|
||||
Reference in New Issue
Block a user