diff --git a/.github/workflows/companion.yml b/.github/workflows/companion.yml index 44eb53e5e..32bae16c5 100644 --- a/.github/workflows/companion.yml +++ b/.github/workflows/companion.yml @@ -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'