diff options
author | yedpodtrzitko <yed@vanyli.net> | 2023-04-07 17:44:38 +0200 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2023-04-07 17:44:38 +0200 |
commit | eab038693474226599ea7eb168e061672906e444 (patch) | |
tree | 31f14230e6e08201637b3c022c072ddefdcfb429 | |
parent | 585f4ed737d6281c03f3cf4af16e8bff7df57814 (diff) |
ci: wait for static check results before starting builds
(cherry picked from commit 93b7bcb33da2c2395e51b097922240e76e9def71)
-rw-r--r-- | .github/workflows/android_builds.yml | 3 | ||||
-rw-r--r-- | .github/workflows/ios_builds.yml | 3 | ||||
-rw-r--r-- | .github/workflows/linux_builds.yml | 3 | ||||
-rw-r--r-- | .github/workflows/macos_builds.yml | 3 | ||||
-rw-r--r-- | .github/workflows/runner.yml | 41 | ||||
-rw-r--r-- | .github/workflows/static_checks.yml | 3 | ||||
-rw-r--r-- | .github/workflows/web_builds.yml | 3 | ||||
-rw-r--r-- | .github/workflows/windows_builds.yml | 3 |
8 files changed, 55 insertions, 7 deletions
diff --git a/.github/workflows/android_builds.yml b/.github/workflows/android_builds.yml index 666b10d016..1912189d1c 100644 --- a/.github/workflows/android_builds.yml +++ b/.github/workflows/android_builds.yml @@ -1,5 +1,6 @@ name: 🤖 Android Builds -on: [push, pull_request] +on: + workflow_call: # Global Settings env: diff --git a/.github/workflows/ios_builds.yml b/.github/workflows/ios_builds.yml index 0ea7a4ccc3..a32b25a8e7 100644 --- a/.github/workflows/ios_builds.yml +++ b/.github/workflows/ios_builds.yml @@ -1,5 +1,6 @@ name: 🍏 iOS Builds -on: [push, pull_request] +on: + workflow_call: # Global Settings env: diff --git a/.github/workflows/linux_builds.yml b/.github/workflows/linux_builds.yml index 2c2ab9b6fb..44765ee32e 100644 --- a/.github/workflows/linux_builds.yml +++ b/.github/workflows/linux_builds.yml @@ -1,5 +1,6 @@ name: 🐧 Linux Builds -on: [push, pull_request] +on: + workflow_call: # Global Settings env: diff --git a/.github/workflows/macos_builds.yml b/.github/workflows/macos_builds.yml index dd3db3270b..8822566c48 100644 --- a/.github/workflows/macos_builds.yml +++ b/.github/workflows/macos_builds.yml @@ -1,5 +1,6 @@ name: 🍎 macOS Builds -on: [push, pull_request] +on: + workflow_call: # Global Settings env: diff --git a/.github/workflows/runner.yml b/.github/workflows/runner.yml new file mode 100644 index 0000000000..0487b1e090 --- /dev/null +++ b/.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 diff --git a/.github/workflows/static_checks.yml b/.github/workflows/static_checks.yml index 6c92922185..5ec5c72656 100644 --- a/.github/workflows/static_checks.yml +++ b/.github/workflows/static_checks.yml @@ -1,5 +1,6 @@ name: 📊 Static Checks -on: [push, pull_request] +on: + workflow_call: concurrency: group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-static diff --git a/.github/workflows/web_builds.yml b/.github/workflows/web_builds.yml index 39f7b7657a..24cb0adac8 100644 --- a/.github/workflows/web_builds.yml +++ b/.github/workflows/web_builds.yml @@ -1,5 +1,6 @@ name: 🌐 Web Builds -on: [push, pull_request] +on: + workflow_call: # Global Settings env: diff --git a/.github/workflows/windows_builds.yml b/.github/workflows/windows_builds.yml index 7f04c3475e..1da2e8efa0 100644 --- a/.github/workflows/windows_builds.yml +++ b/.github/workflows/windows_builds.yml @@ -1,5 +1,6 @@ name: 🏁 Windows Builds -on: [push, pull_request] +on: + workflow_call: # Global Settings # SCONS_CACHE for windows must be set in the build environment |