Skip to content

Commit d100b72

Browse files
authored
Merge pull request #47 from Ivorforce/Ivorforce-patch-action
2 parents 25b371e + b4ea2d3 commit d100b72

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

.github/actions/build/action.yml

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,20 @@ inputs:
1515
default: 'template_debug'
1616
description: Build type (template_debug or template_release).
1717
scons-cache:
18-
default: .scons-cache/
19-
description: Scons cache location.
18+
default: '.scons-cache/'
19+
description: Scons cache folder name, relative to each scons directory. Must not contain relative path signifiers (. or ..). Must be a transparent path part (empty or 'path/to/directory/', ending in a slash).
2020
em_version:
2121
default: 3.1.62
2222
description: Emscripten version.
23-
em_cache_folder:
23+
em-cache-directory:
2424
default: emsdk-cache
25-
description: Emscripten cache folder.
25+
description: Emscripten cache directory.
26+
godot-cpp-directory:
27+
default: 'godot-cpp/'
28+
description: Location of godot-cpp in the repository. Must not contain relative path signifiers (. or ..). Must be a transparent path part (empty or 'path/to/directory/', ending in a slash).
29+
gdextension-directory:
30+
default: ''
31+
description: Location of the gdextension project within the repository. Must not contain relative path signifiers (. or ..). Must be a transparent path part (empty or 'path/to/directory/', ending in a slash).
2632

2733
runs:
2834
using: composite
@@ -67,7 +73,7 @@ runs:
6773
uses: mymindstorm/setup-emsdk@v13
6874
with:
6975
version: ${{ inputs.em_version }}
70-
actions-cache-folder: ${{ inputs.em_cache_folder }}.${{ inputs.float-precision }}.${{ inputs.build-target-type }}
76+
actions-cache-folder: ${{ inputs.em-cache-directory }}.${{ inputs.float-precision }}.${{ inputs.build-target-type }}
7177
- name: Web - Verify Emscripten setup
7278
if: ${{ inputs.platform == 'web' }}
7379
shell: sh
@@ -99,22 +105,22 @@ runs:
99105
uses: actions/cache@v4
100106
with:
101107
path: |
102-
${{ github.workspace }}/${{ inputs.gdextension-location }}/${{ inputs.scons-cache }}/
103-
${{ github.workspace }}/${{ inputs.godot-cpp }}/${{ inputs.scons-cache }}/
108+
${{ github.workspace }}/${{ inputs.gdextension-directory }}${{ inputs.scons-cache }}
109+
${{ github.workspace }}/${{ inputs.godot-cpp-directory }}${{ inputs.scons-cache }}
104110
key: ${{ inputs.platform }}_${{ inputs.arch }}_${{ inputs.float-precision }}_${{ inputs.build-target-type }}_cache
105111
# Build godot-cpp
106112
- name: Build godot-cpp Debug Build
107113
shell: sh
108114
env:
109-
SCONS_CACHE: ${{ github.workspace }}/${{ inputs.godot-cpp }}/${{ inputs.scons-cache }}/
115+
SCONS_CACHE: ${{ github.workspace }}/${{ inputs.godot-cpp-directory }}${{ inputs.scons-cache }}
110116
run: |
111117
scons target=${{ inputs.build-target-type }} platform=${{ inputs.platform }} arch=${{ inputs.arch }} generate_bindings=yes precision=${{ inputs.float-precision }}
112-
working-directory: ${{ inputs.godot-cpp }}
118+
working-directory: ${{ inputs.godot-cpp-directory }}
113119
# Build gdextension
114120
- name: Build GDExtension Debug Build
115121
shell: sh
116122
env:
117-
SCONS_CACHE: ${{ github.workspace }}/${{ inputs.gdextension-location }}/${{ inputs.scons-cache }}/
123+
SCONS_CACHE: ${{ github.workspace }}/${{ inputs.gdextension-directory }}${{ inputs.scons-cache }}
118124
run: |
119125
scons target=${{ inputs.build-target-type }} platform=${{ inputs.platform }} arch=${{ inputs.arch }} precision=${{ inputs.float-precision }}
120-
working-directory: ${{ inputs.gdextension-location }}
126+
working-directory: ${{ inputs.gdextension-directory }}

0 commit comments

Comments
 (0)