ci: companion work_flow dispatch can do selective builds

This commit is contained in:
Peter Feerick
2026-03-21 23:32:46 +00:00
parent b87932cbc8
commit 2025d48d88
+15
View File
@@ -22,6 +22,18 @@ on:
- 'cmake/wasm/CMakeLists.txt' - 'cmake/wasm/CMakeLists.txt'
workflow_dispatch: workflow_dispatch:
inputs:
target:
description: 'Build target'
required: true
default: 'all'
type: choice
options:
- all
- linux
- macos
- windows
- wasm
jobs: jobs:
modules: modules:
@@ -82,6 +94,7 @@ jobs:
name: Linux Companion name: Linux Companion
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: modules needs: modules
if: inputs.target == 'all' || inputs.target == 'linux' || inputs.target == ''
container: container:
image: ghcr.io/edgetx/edgetx-dev:latest image: ghcr.io/edgetx/edgetx-dev:latest
@@ -110,6 +123,7 @@ jobs:
name: macOS Companion name: macOS Companion
runs-on: macos-15 runs-on: macos-15
needs: modules needs: modules
if: inputs.target == 'all' || inputs.target == 'macos' || inputs.target == ''
env: env:
CMAKE_OSX_ARCHITECTURES: 'x86_64;arm64' CMAKE_OSX_ARCHITECTURES: 'x86_64;arm64'
@@ -138,6 +152,7 @@ jobs:
name: Windows Companion name: Windows Companion
runs-on: windows-2022 runs-on: windows-2022
needs: modules needs: modules
if: inputs.target == 'all' || inputs.target == 'windows' || inputs.target == ''
env: env:
CMAKE_GENERATOR: 'Ninja' CMAKE_GENERATOR: 'Ninja'