Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allowing to choose which platforms to build #55

Merged
merged 1 commit into from
Sep 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 27 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
name: Release
on: workflow_dispatch
on:
workflow_dispatch:
inputs:
build_windows:
description: 'Build for Windows'
type: boolean
required: true
default: true
build_linux:
description: 'Build for Linux'
type: boolean
required: true
default: true
build_macos:
description: 'Build for MacOS'
type: boolean
required: true
default: true
build_android:
description: 'Build for Android'
type: boolean
required: true
default: true
jobs:
create_release:
name: Create Draft Release
Expand Down Expand Up @@ -34,6 +56,7 @@ jobs:
name: Build Windows
needs: create_release
runs-on: windows-latest
if: ${{ inputs.build_windows }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -87,6 +110,7 @@ jobs:
name: Build Linux
needs: create_release
runs-on: ubuntu-latest
if: ${{ inputs.build_linux }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -140,6 +164,7 @@ jobs:
name: Build MacOS
needs: create_release
runs-on: macos-14
if: ${{ inputs.build_macos }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -176,6 +201,7 @@ jobs:
name: Build Android
needs: create_release
runs-on: ubuntu-latest
if: ${{ inputs.build_android }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down