fix(x10express): restore RADIO_X10EXPRESS guards, de-dupe RADIO_FLAVOR, add ci check to prevent future occurances (#7725)

Co-authored-by: Peter Feerick <5500713+pfeerick@users.noreply.github.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Peter Feerick
2026-08-30 18:55:03 +10:00
committed by GitHub
co-authored by Peter Feerick Claude Opus 5
parent 076d80ed9e
commit 26bd20663e
16 changed files with 178 additions and 20 deletions
+6 -5
View File
@@ -74,13 +74,14 @@ jobs:
wget -qO- "https://github.com/casey/just/releases/download/${JUST_VERSION}/just-${JUST_VERSION}-x86_64-unknown-linux-musl.tar.gz" \
| tar xz -C /usr/local/bin just
# A Justfile change cannot cause drift, but it can rename a recipe out
# from under the jobs below, so check they still resolve rather than
# regenerating everything.
- name: Check the recipes this workflow calls still resolve
# A Justfile change cannot cause drift, but it can break the file, and
# parsing validates every recipe rather than only the ones below. Fails
# here in seconds instead of in the container jobs; the list is derived,
# so adding a recipe needs no change.
- name: Validate the Justfile
run: |
just --list >/dev/null
for recipe in cfn-sort gen-fonts gen-yaml gen-radios gen-simstr; do
for recipe in $(just --summary); do
just --show "${recipe}" >/dev/null
done
@@ -0,0 +1,23 @@
---
name: Validate radio macros
on:
push:
branches:
- 'main'
- '[0-9]+.[0-9]+'
pull_request:
workflow_dispatch:
# No 'paths' filter: any CMakeLists or source edit can orphan a macro, and #6437
# touched neither hw_defs nor codegen. Pure stdlib, runs in about a second.
jobs:
validate:
name: Radio macros
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v7
- name: Check every referenced RADIO_* macro can be defined
run: python3 tools/check_radio_macros.py