Skip to content

Commit 9df2b2c

Browse files
widgetiiclaude
andcommitted
CI: add platform filter for workflow_dispatch
Both build and toolchain workflows now accept an optional 'platform' input when triggered manually. If set, only that platform runs. If empty (default), all platforms run as before. Usage: gh workflow run build.yml -f platform=hi3516cv100_lite gh workflow run toolchain.yml -f platform=hi3516cv100_lite Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent d1b2c87 commit 9df2b2c

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ on:
66
schedule:
77
- cron: '30 22 * * *'
88
workflow_dispatch:
9+
inputs:
10+
platform:
11+
description: 'Build only this platform (e.g. hi3516cv100_lite). Empty = all.'
12+
required: false
13+
default: ''
914

1015
env:
1116
TAG_NAME: latest
@@ -161,6 +166,8 @@ jobs:
161166
- gk7205v200_ultimate
162167
- gk7205v300_ultimate
163168

169+
if: ${{ !github.event.inputs.platform || matrix.platform == github.event.inputs.platform }}
170+
164171
steps:
165172
- name: Checkout source
166173
uses: actions/checkout@v4

.github/workflows/toolchain.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: toolchain
22
on:
33
workflow_dispatch:
4+
inputs:
5+
platform:
6+
description: 'Build only this platform (e.g. hi3516cv100_lite). Empty = all.'
7+
required: false
8+
default: ''
49

510
env:
611
TAG_NAME: toolchain
@@ -63,6 +68,8 @@ jobs:
6368
- xm510_lite
6469
- xm530_lite
6570

71+
if: ${{ !github.event.inputs.platform || matrix.platform == github.event.inputs.platform }}
72+
6673
steps:
6774
- name: Checkout source
6875
uses: actions/checkout@v4

0 commit comments

Comments
 (0)