forked from godotengine/godot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: Change godot-cpp from workflow to action
- Loading branch information
Showing
4 changed files
with
49 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Build godot-cpp | ||
description: Build godot-cpp with the provided options. | ||
|
||
env: | ||
GODOT_CPP_BRANCH: 4.3 | ||
|
||
inputs: | ||
bin: | ||
description: Path to the Godot 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: godotengine/godot-cpp | ||
ref: ${{ env.GODOT_CPP_BRANCH }} | ||
path: godot-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=./godot-cpp/test "gdextension_dir=${{ github.workspace }}" ${{ inputs.scons-flags }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters