2
0
Эх сурвалжийг харах

Merge pull request #65232 from yedpodtrzitko/yed/ci-entry-workflow

ci: wait for static check results before starting builds
Rémi Verschelde 2 жил өмнө
parent
commit
1a77d37143

+ 2 - 1
.github/workflows/android_builds.yml

@@ -1,5 +1,6 @@
 name: 🤖 Android Builds
 name: 🤖 Android Builds
-on: [push, pull_request]
+on:
+  workflow_call:
 
 
 # Global Settings
 # Global Settings
 env:
 env:

+ 2 - 1
.github/workflows/ios_builds.yml

@@ -1,5 +1,6 @@
 name: 🍏 iOS Builds
 name: 🍏 iOS Builds
-on: [push, pull_request]
+on:
+  workflow_call:
 
 
 # Global Settings
 # Global Settings
 env:
 env:

+ 2 - 1
.github/workflows/linux_builds.yml

@@ -1,5 +1,6 @@
 name: 🐧 Linux Builds
 name: 🐧 Linux Builds
-on: [push, pull_request]
+on:
+  workflow_call:
 
 
 # Global Settings
 # Global Settings
 env:
 env:

+ 2 - 1
.github/workflows/macos_builds.yml

@@ -1,5 +1,6 @@
 name: 🍎 macOS Builds
 name: 🍎 macOS Builds
-on: [push, pull_request]
+on:
+  workflow_call:
 
 
 # Global Settings
 # Global Settings
 env:
 env:

+ 41 - 0
.github/workflows/runner.yml

@@ -0,0 +1,41 @@
+name: 🔗 GHA
+on: [push, pull_request]
+
+concurrency:
+  group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-runner
+  cancel-in-progress: true
+
+jobs:
+  static-checks:
+    name: 📊 Static
+    uses: ./.github/workflows/static_checks.yml
+
+  android-build:
+    name: 🤖 Android
+    needs: static-checks
+    uses: ./.github/workflows/android_builds.yml
+
+  ios-build:
+    name: 🍏 iOS
+    needs: static-checks
+    uses: ./.github/workflows/ios_builds.yml
+
+  linux-build:
+    name: 🐧 Linux
+    needs: static-checks
+    uses: ./.github/workflows/linux_builds.yml
+
+  macos-build:
+    name: 🍎 macOS
+    needs: static-checks
+    uses: ./.github/workflows/macos_builds.yml
+
+  windows-build:
+    name: 🏁 Windows
+    needs: static-checks
+    uses: ./.github/workflows/windows_builds.yml
+
+  web-build:
+    name: 🌐 Web
+    needs: static-checks
+    uses: ./.github/workflows/web_builds.yml

+ 2 - 1
.github/workflows/static_checks.yml

@@ -1,5 +1,6 @@
 name: 📊 Static Checks
 name: 📊 Static Checks
-on: [push, pull_request]
+on:
+  workflow_call:
 
 
 concurrency:
 concurrency:
   group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-static
   group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-static

+ 2 - 1
.github/workflows/web_builds.yml

@@ -1,5 +1,6 @@
 name: 🌐 Web Builds
 name: 🌐 Web Builds
-on: [push, pull_request]
+on:
+  workflow_call:
 
 
 # Global Settings
 # Global Settings
 env:
 env:

+ 2 - 1
.github/workflows/windows_builds.yml

@@ -1,5 +1,6 @@
 name: 🏁 Windows Builds
 name: 🏁 Windows Builds
-on: [push, pull_request]
+on:
+  workflow_call:
 
 
 # Global Settings
 # Global Settings
 # SCONS_CACHE for windows must be set in the build environment
 # SCONS_CACHE for windows must be set in the build environment