Update build.yml

This commit is contained in:
Kae 2024-12-31 18:11:52 +11:00
parent 32f6d28d05
commit 95b8727d0c

View File

@ -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: