Update build.yml
This commit is contained in:
parent
32f6d28d05
commit
95b8727d0c
19
.github/workflows/build.yml
vendored
19
.github/workflows/build.yml
vendored
@ -2,6 +2,19 @@ name: Build
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
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:
|
push:
|
||||||
branches:
|
branches:
|
||||||
@ -15,6 +28,7 @@ jobs:
|
|||||||
build_windows:
|
build_windows:
|
||||||
name: Build OpenStarbound Windows x64
|
name: Build OpenStarbound Windows x64
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
if: ${{ (github.event_name != 'workflow_dispatch') || (inputs.windows == true) }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@ -90,6 +104,7 @@ jobs:
|
|||||||
build_linux:
|
build_linux:
|
||||||
name: Build OpenStarbound Linux x86_64
|
name: Build OpenStarbound Linux x86_64
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
if: ${{ (github.event_name != 'workflow_dispatch') || (inputs.linux == true) }}
|
||||||
env:
|
env:
|
||||||
CC: clang
|
CC: clang
|
||||||
CXX: clang++
|
CXX: clang++
|
||||||
@ -156,7 +171,7 @@ jobs:
|
|||||||
build-mac-intel:
|
build-mac-intel:
|
||||||
name: Build OpenStarbound macOS x86_64
|
name: Build OpenStarbound macOS x86_64
|
||||||
runs-on: macos-13
|
runs-on: macos-13
|
||||||
|
if: ${{ (github.event_name != 'workflow_dispatch') || (inputs.macOS == true) }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
@ -198,7 +213,7 @@ jobs:
|
|||||||
build-mac-arm:
|
build-mac-arm:
|
||||||
name: Build OpenStarbound macOS arm64
|
name: Build OpenStarbound macOS arm64
|
||||||
runs-on: macos-14
|
runs-on: macos-14
|
||||||
|
if: ${{ (github.event_name != 'workflow_dispatch') || (inputs.macOS == true) }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user