Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Add redot-cpp testing action #982

Merged
merged 1 commit into from
Mar 9, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/actions/redot-cpp-build/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build redot-cpp
description: Build redot-cpp with the provided options.

env:
REDOT_CPP_BRANCH: 4.3

inputs:
bin:
description: Path to the Redot binary.
required: true
type: string
scons-flags:
description: Additional SCons flags.
type: string
scons-cache:
description: The SCons cache path.
default: ${{ github.workspace }}/.scons_cache/
type: string

runs:
using: composite
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
repository: Redot-Engine/redot-cpp
ref: ${{ env.REDOT_CPP_BRANCH }}
path: redot-cpp

- name: Extract API
shell: sh
run: ${{ inputs.bin }} --headless --dump-gdextension-interface --dump-extension-api

- name: SCons Build
shell: sh
env:
SCONS_CACHE: ${{ inputs.scons-cache }}
run: scons --directory=./redot-cpp/test "gdextension_dir=${{ github.workspace }}" ${{ inputs.scons-flags }}
9 changes: 9 additions & 0 deletions .github/workflows/linux_builds.yml
Original file line number Diff line number Diff line change
@@ -35,6 +35,8 @@ jobs:
artifact: true
# Validate godot-cpp compatibility on one arbitrary editor build.
godot-cpp: true
# Validate redot-cpp compatibility on one arbitrary editor build.
redot-cpp: true
cache-limit: 2

- name: Editor with doubles and GCC sanitizers (target=editor, tests=yes, dev_build=yes, scu_build=yes, precision=double, use_asan=yes, use_ubsan=yes, linker=gold)
@@ -175,6 +177,13 @@ jobs:
bin: ${{ matrix.bin }}
scons-flags: target=template_debug dev_build=yes verbose=yes

- name: Compilation (redot-cpp)
uses: ./.github/actions/redot-cpp-build
if: matrix.redot-cpp
with:
bin: ${{ matrix.bin }}
scons-flags: target=template_debug dev_build=yes verbose=yes

- name: Save Godot build cache
uses: ./.github/actions/godot-cache-save
with: