Debian Codegraph @

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

raw symbols SCIP
1 name: Build Godot
2 description: Build Godot with the provided options.
3
4 inputs:
5 target:
6 description: Build target (editor, template_release, template_debug).
7 default: editor
8 type: choice
9 options: [editor, template_debug, template_release]
10 platform:
11 description: Target platform.
12 type: string
13 scons-flags:
14 description: Additional SCons flags.
15 type: string
16 scons-cache:
17 description: The SCons cache path.
18 default: ${{ github.workspace }}/.scons_cache/
19 type: string
20
21 runs:
22 using: composite
23 steps:
24 - name: SCons Build
25 shell: sh
26 run: |
27 echo "Building with flags:" platform=${{ inputs.platform }} target=${{ inputs.target }} ${{ inputs.scons-flags }} "cache_path=${{ inputs.scons-cache }}" redirect_build_objects=no
28
29 if [ "${{ inputs.target }}" != "editor" ]; then
30 # Ensure we don't include editor code in export template builds.
31 rm -rf editor
32 fi
33
34 if [ "${{ github.event.number }}" != "" ]; then
35 # Set build identifier with pull request number if available. This is displayed throughout the editor.
36 export BUILD_NAME="gh-${{ github.event.number }}"
37 else
38 export BUILD_NAME="gh"
39 fi
40
41 scons platform=${{ inputs.platform }} target=${{ inputs.target }} ${{ inputs.scons-flags }} "cache_path=${{ inputs.scons-cache }}" redirect_build_objects=no
42 ls -l bin/