ci: companion work_flow dispatch can do selective builds
This commit is contained in:
@@ -22,6 +22,18 @@ on:
|
||||
- 'cmake/wasm/CMakeLists.txt'
|
||||
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
target:
|
||||
description: 'Build target'
|
||||
required: true
|
||||
default: 'all'
|
||||
type: choice
|
||||
options:
|
||||
- all
|
||||
- linux
|
||||
- macos
|
||||
- windows
|
||||
- wasm
|
||||
|
||||
jobs:
|
||||
modules:
|
||||
@@ -82,6 +94,7 @@ jobs:
|
||||
name: Linux Companion
|
||||
runs-on: ubuntu-latest
|
||||
needs: modules
|
||||
if: inputs.target == 'all' || inputs.target == 'linux' || inputs.target == ''
|
||||
|
||||
container:
|
||||
image: ghcr.io/edgetx/edgetx-dev:latest
|
||||
@@ -110,6 +123,7 @@ jobs:
|
||||
name: macOS Companion
|
||||
runs-on: macos-15
|
||||
needs: modules
|
||||
if: inputs.target == 'all' || inputs.target == 'macos' || inputs.target == ''
|
||||
|
||||
env:
|
||||
CMAKE_OSX_ARCHITECTURES: 'x86_64;arm64'
|
||||
@@ -138,6 +152,7 @@ jobs:
|
||||
name: Windows Companion
|
||||
runs-on: windows-2022
|
||||
needs: modules
|
||||
if: inputs.target == 'all' || inputs.target == 'windows' || inputs.target == ''
|
||||
|
||||
env:
|
||||
CMAKE_GENERATOR: 'Ninja'
|
||||
|
||||
Reference in New Issue
Block a user