From 95b8727d0ca1bacde2612510acb1aba1fc5248b3 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Tue, 31 Dec 2024 18:11:52 +1100 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 490eef5..c7cf799 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,6 +2,19 @@ name: Build on: workflow_dispatch: + inputs: + linux: + type: boolean + description: Linux + default: true + windows: + type: boolean + description: Windows + default: false + macOS: + type: boolean + description: macOS + default: false push: branches: @@ -15,6 +28,7 @@ jobs: build_windows: name: Build OpenStarbound Windows x64 runs-on: windows-latest + if: ${{ (github.event_name != 'workflow_dispatch') || (inputs.windows == true) }} steps: - name: Checkout uses: actions/checkout@v4 @@ -90,6 +104,7 @@ jobs: build_linux: name: Build OpenStarbound Linux x86_64 runs-on: ubuntu-22.04 + if: ${{ (github.event_name != 'workflow_dispatch') || (inputs.linux == true) }} env: CC: clang CXX: clang++ @@ -156,7 +171,7 @@ jobs: build-mac-intel: name: Build OpenStarbound macOS x86_64 runs-on: macos-13 - + if: ${{ (github.event_name != 'workflow_dispatch') || (inputs.macOS == true) }} steps: - uses: actions/checkout@v4 with: @@ -198,7 +213,7 @@ jobs: build-mac-arm: name: Build OpenStarbound macOS arm64 runs-on: macos-14 - + if: ${{ (github.event_name != 'workflow_dispatch') || (inputs.macOS == true) }} steps: - uses: actions/checkout@v4 with: