Skip to content

Commit

Permalink
Merge pull request #55 from codesimo/patch-1
Browse files Browse the repository at this point in the history
Allowing to choose which platforms to build in the action
  • Loading branch information
Bonfra04 authored Sep 1, 2024
2 parents 9e703b1 + f92b681 commit ef54ffd
Showing 1 changed file with 27 additions and 1 deletion.
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

0 comments on commit ef54ffd

Please sign in to comment.