mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-07-26 14:58:12 +00:00
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>
86 lines
2.1 KiB
YAML
86 lines
2.1 KiB
YAML
name: Build Wio Tracker L1 Firmwares
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
tags:
|
|
- 'wio-tracker-v*'
|
|
|
|
jobs:
|
|
|
|
build-standard:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
|
|
- name: Clone Repo
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Build Environment
|
|
uses: ./.github/actions/setup-build-environment
|
|
|
|
- name: Build Firmwares
|
|
env:
|
|
FIRMWARE_VERSION: ${{ env.GIT_TAG_VERSION }}
|
|
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-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
|
|
with:
|
|
name: Wio Tracker L1 Firmware ${{ env.GIT_TAG_VERSION }}
|
|
body: ""
|
|
draft: true
|
|
files: out/*.uf2
|