Răsfoiți Sursa

Allow for disabling part of ar.yml (#18967)

Signed-off-by: Mateusz Wasilewski <[email protected]>
Mateusz Wasilewski 2 săptămâni în urmă
părinte
comite
d2692fc0b2
1 a modificat fișierele cu 25 adăugiri și 0 ștergeri
  1. 25 0
      .github/workflows/ar.yml

+ 25 - 0
.github/workflows/ar.yml

@@ -17,6 +17,21 @@ on:
             description: Use no artifacts for next build (will be saved as clean artifacts)
             required: false
             default: false
+        windows_build:
+            description: 'Build Windows'
+            required: false
+            default: true
+            type: boolean
+        linux_build:
+            description: 'Build Linux'
+            required: false
+            default: true
+            type: boolean
+        android_build:
+            description: 'Build Android'
+            required: false
+            default: true
+            type: boolean
   push:
     branches:
       - main
@@ -38,6 +53,7 @@ jobs:
 
 #### Windows Build ####
     Windows-Profile:
+        if: ${{ github.event_name != 'workflow_dispatch' || inputs.windows_build }}
         uses: ./.github/workflows/windows-build.yml
         with:
             compiler: msvc
@@ -48,6 +64,7 @@ jobs:
             last_artifact: ${{ inputs.CLEAN_ARTIFACTS == false }} # If CLEAN_ARTIFACTS is false, then this returns true
     
     Windows-Asset:
+        if: ${{ github.event_name != 'workflow_dispatch' || inputs.windows_build }}
         needs: Windows-Profile
         uses: ./.github/workflows/windows-build.yml
         with:
@@ -58,6 +75,7 @@ jobs:
             type: asset_profile
 
     Windows-Test:
+        if: ${{ github.event_name != 'workflow_dispatch' || inputs.windows_build }}
         needs: Windows-Asset
         uses: ./.github/workflows/windows-build.yml
         with:
@@ -68,6 +86,7 @@ jobs:
             type: test_cpu_profile
 
     Windows-Release:
+        if: ${{ github.event_name != 'workflow_dispatch' || inputs.windows_build }}
         uses: ./.github/workflows/windows-build.yml
         with:
             compiler: msvc
@@ -79,6 +98,7 @@ jobs:
 
 #### Linux Build ####
     Linux-Profile:
+        if: ${{ github.event_name != 'workflow_dispatch' || inputs.linux_build }}
         uses: ./.github/workflows/linux-build.yml
         with:
             compiler: clang
@@ -89,6 +109,7 @@ jobs:
             last_artifact: ${{ inputs.CLEAN_ARTIFACTS == false }}
 
     Linux-Asset:
+        if: ${{ github.event_name != 'workflow_dispatch' || inputs.linux_build }}
         needs: Linux-Profile
         uses: ./.github/workflows/linux-build.yml
         with:
@@ -99,6 +120,7 @@ jobs:
             type: asset_profile
 
     Linux-Test:
+        if: ${{ github.event_name != 'workflow_dispatch' || inputs.linux_build }}
         needs: Linux-Asset
         uses: ./.github/workflows/linux-build.yml
         with:
@@ -111,6 +133,7 @@ jobs:
 
 #### Android Build ####
     Android-Profile:
+        if: ${{ github.event_name != 'workflow_dispatch' || inputs.android_build }}
         uses: ./.github/workflows/android-build.yml
         with:
             compiler: clang
@@ -121,6 +144,7 @@ jobs:
             last_artifact: ${{ inputs.CLEAN_ARTIFACTS == false }}
 
     Android-Asset:
+        if: ${{ github.event_name != 'workflow_dispatch' || inputs.android_build }}
         uses: ./.github/workflows/android-build.yml
         with:
             compiler: msvc
@@ -131,6 +155,7 @@ jobs:
             last_artifact: ${{ inputs.CLEAN_ARTIFACTS == false }}
             
     Android-Gradle:
+        if: ${{ github.event_name != 'workflow_dispatch' || inputs.android_build }}
         uses: ./.github/workflows/android-build.yml
         with:
             compiler: clang