fix: Ensure all build jobs run on push events

- Fix build job conditions to run on push events
- Previously jobs were skipped because they only checked inputs
- Now all components build automatically on push to master

Build jobs now run on:
 Push events (automatic) - all components
 Manual trigger (optional) - selected components

This ensures Linux, Windows, macOS, Android, and Backend all build!
This commit is contained in:
Tomas Dvorak
2026-03-18 14:29:51 +01:00
parent 9ee784dee0
commit 109af189a4
+5 -5
View File
@@ -154,7 +154,7 @@ jobs:
name: Build Linux Desktop
runs-on: ubuntu-latest
needs: get-version
if: contains(github.event.inputs.components, 'desktop')
if: contains(github.event.inputs.components, 'desktop') || github.event_name == 'push'
strategy:
fail-fast: false
@@ -207,7 +207,7 @@ jobs:
name: Build Windows Desktop
runs-on: ubuntu-latest
needs: get-version
if: contains(github.event.inputs.components, 'desktop')
if: contains(github.event.inputs.components, 'desktop') || github.event_name == 'push'
strategy:
fail-fast: false
@@ -260,7 +260,7 @@ jobs:
name: Build macOS Desktop
runs-on: macos-latest
needs: get-version
if: contains(github.event.inputs.components, 'desktop')
if: contains(github.event.inputs.components, 'desktop') || github.event_name == 'push'
strategy:
fail-fast: false
@@ -310,7 +310,7 @@ jobs:
name: Build Android App
runs-on: ubuntu-latest
needs: get-version
if: contains(github.event.inputs.components, 'android')
if: contains(github.event.inputs.components, 'android') || github.event_name == 'push'
steps:
- uses: actions/checkout@v4
@@ -355,7 +355,7 @@ jobs:
name: Build Backend
runs-on: ubuntu-latest
needs: get-version
if: contains(github.event.inputs.components, 'backend')
if: contains(github.event.inputs.components, 'backend') || github.event_name == 'push'
steps:
- uses: actions/checkout@v4