Skip to content

Commit

Permalink
ci: wait for static check results before starting builds
Browse files Browse the repository at this point in the history
  • Loading branch information
yedpodtrzitko committed Apr 4, 2023
1 parent ef02571 commit 93b7bcb
Show file tree
Hide file tree
Showing 8 changed files with 55 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/android_builds.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: 🤖 Android Builds
on: [push, pull_request]
on:
workflow_call:

# Global Settings
env:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ios_builds.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: 🍏 iOS Builds
on: [push, pull_request]
on:
workflow_call:

# Global Settings
env:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/linux_builds.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: 🐧 Linux Builds
on: [push, pull_request]
on:
workflow_call:

# Global Settings
env:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/macos_builds.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: 🍎 macOS Builds
on: [push, pull_request]
on:
workflow_call:

# Global Settings
env:
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/runner.yml
Original file line number Diff line number Diff line change
@@ -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
3 changes: 2 additions & 1 deletion .github/workflows/static_checks.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/web_builds.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: 🌐 Web Builds
on: [push, pull_request]
on:
workflow_call:

# Global Settings
env:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/windows_builds.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 93b7bcb

Please sign in to comment.