Debian Codegraph @

.github/actions/godot-cpp-build/action.yml

raw symbols SCIP
1 name: Build godot-cpp
2 description: Build godot-cpp with the provided options.
3
4 inputs:
5 bin:
6 description: Path to the Godot binary.
7 required: true
8 type: string
9 scons-flags:
10 description: Additional SCons flags.
11 type: string
12 scons-cache:
13 description: The SCons cache path.
14 default: ${{ github.workspace }}/.scons_cache/
15 type: string
16 godot-cpp-branch:
17 description: The godot-cpp branch.
18 default: master
19 type: string
20
21 runs:
22 using: composite
23 steps:
24 - name: Checkout
25 uses: actions/checkout@v6
26 with:
27 submodules: recursive
28 repository: godotengine/godot-cpp
29 ref: ${{ inputs.godot-cpp-branch }}
30 path: godot-cpp
31
32 - name: Extract API
33 shell: sh
34 run: ${{ inputs.bin }} --headless --dump-gdextension-interface --dump-extension-api
35
36 - name: SCons Build
37 shell: sh
38 env:
39 SCONS_CACHE: ${{ inputs.scons-cache }}
40 run: scons --directory=./godot-cpp/test "gdextension_dir=${{ github.workspace }}" ${{ inputs.scons-flags }}