diff options
author | Yuri Sizov <yuris@humnom.net> | 2023-08-01 20:38:07 +0200 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2023-08-01 20:41:45 +0200 |
commit | deb602578186a8918270cf05d75efd3e72bd9335 (patch) | |
tree | 48e44875fca318084c0aa2c05ecb7605ac270980 /.github/workflows/runner.yml | |
parent | 2992ffd25523cb8b3e0ef1b873c40115b8940178 (diff) | |
download | redot-engine-deb602578186a8918270cf05d75efd3e72bd9335.tar.gz |
CI: Extract godot-cpp testing into its own job
This ensures that the godot-cpp job has plenty of resources
to run its build and avoid being affected by the main build.
Additionally:
- Extract test tasks into dedicated actions.
- Upload artifacts as early as possible.
- Ensure that we check master cache before random cache.
Diffstat (limited to '.github/workflows/runner.yml')
-rw-r--r-- | .github/workflows/runner.yml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/.github/workflows/runner.yml b/.github/workflows/runner.yml index be255b5468..8e1741e844 100644 --- a/.github/workflows/runner.yml +++ b/.github/workflows/runner.yml @@ -6,10 +6,14 @@ concurrency: cancel-in-progress: true jobs: + # First stage: Only static checks, fast and prevent expensive builds from running. + static-checks: name: 📊 Static checks uses: ./.github/workflows/static_checks.yml + # Second stage: Run all the builds and some of the tests. + android-build: name: 🤖 Android needs: static-checks @@ -39,3 +43,15 @@ jobs: name: 🌐 Web needs: static-checks uses: ./.github/workflows/web_builds.yml + + # Third stage: Run auxiliary tests using build artifacts from previous jobs. + + # Can be turned off for PRs that intentionally break compat with godot-cpp, + # until both the upstream PR and the matching godot-cpp changes are merged. + godot-cpp-test: + name: 🪲 Godot CPP + # This can be changed to depend on another platform, if we decide to use it for + # godot-cpp instead. Make sure to move the .github/actions/godot-api-dump step + # appropriately. + needs: linux-build + uses: ./.github/workflows/godot_cpp_test.yml |