diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-12-31 18:11:52 +1100 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-12-31 18:11:52 +1100 |
commit | 95b8727d0ca1bacde2612510acb1aba1fc5248b3 (patch) | |
tree | 968f1fbd17d4ae96ccc1b1b491a6f46d991cac97 /.github | |
parent | 32f6d28d057a9c8bc8562259766eca06adbc8471 (diff) |
Update build.yml
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build.yml | 19 |
1 files 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: |