virtualx-engine/.github/workflows/godot_cpp_test.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

65 lines
1.8 KiB
YAML
Raw Normal View History

name: 🪲 Godot CPP
on:
workflow_call:
# Global Settings
env:
# Used for the cache key. Add version suffix to force clean build.
GODOT_BASE_BRANCH: master
# Used for the godot-cpp checkout.
2024-07-08 17:41:20 +02:00
GODOT_CPP_BRANCH: 4.3
concurrency:
2024-07-08 17:41:20 +02:00
group: ci-${{ github.actor }}-${{ github.head_ref || github.run_number }}-${{ github.ref }}-cpp-tests
cancel-in-progress: true
jobs:
godot-cpp-tests:
2024-07-08 17:41:20 +02:00
runs-on: ubuntu-20.04
name: Build and test Godot CPP
steps:
2024-07-08 17:41:20 +02:00
- name: Checkout
uses: actions/checkout@v4
with:
2024-09-18 22:29:00 +02:00
sparse-checkout: .github
- name: Checkout godot-cpp
uses: actions/checkout@v4
with:
2024-09-18 22:29:00 +02:00
submodules: recursive
repository: godotengine/godot-cpp
ref: ${{ env.GODOT_CPP_BRANCH }}
2024-07-08 17:41:20 +02:00
path: godot-cpp
2024-09-18 22:29:00 +02:00
- name: Setup Python and SCons
uses: ./.github/actions/godot-deps
- name: Setup GCC problem matcher
uses: ammaraskar/gcc-problem-matcher@master
- name: Download GDExtension interface and API dump
uses: ./.github/actions/download-artifact
with:
2024-07-08 17:41:20 +02:00
name: godot-api-dump
2024-09-18 22:29:00 +02:00
path: ./godot-cpp/gdextension
2024-09-18 22:29:00 +02:00
# TODO: Enable caching when godot-cpp has proper cache limiting.
2024-09-18 22:29:00 +02:00
# - name: Restore Godot build cache
# uses: ./.github/actions/godot-cache-restore
# with:
# cache-name: godot-cpp
# continue-on-error: true
- name: Build godot-cpp test extension
2024-09-18 22:29:00 +02:00
env: # Keep synced with godot-build.
SCONS_CACHE: ${{ github.workspace }}/.scons-cache/
SCONS_CACHE_LIMIT: 7168
run: scons --directory=./godot-cpp/test target=template_debug dev_build=yes verbose=yes
2024-09-18 22:29:00 +02:00
# - name: Save Godot build cache
# uses: ./.github/actions/godot-cache-save
# with:
# cache-name: godot-cpp
# continue-on-error: true