Compare commits

..

4 Commits

Author SHA1 Message Date
Lukas Tenbrink 0aad5148be
Merge branch 'main' into Ivorforce-patch-action 2024-10-03 09:02:06 +02:00
Lukas Tenbrink 9378414d53
Merge branch 'godotengine:main' into Ivorforce-patch-action 2024-09-20 20:47:41 +02:00
Lukas Tenbrink ea2a9815fe
Update action.yml
Fix for action that relative path parts are not allowed.
2024-09-20 20:33:19 +02:00
Lukas Tenbrink bc7f230a73
Update action.yml 2024-09-20 20:06:35 +02:00
2 changed files with 15 additions and 16 deletions

View File

@ -18,17 +18,17 @@ inputs:
default: '.scons-cache/'
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/folder/', ending in a slash).
em_version:
default: 3.1.62
default: 3.1.39
description: Emscripten version.
em-cache-directory:
em_cache_folder:
default: emsdk-cache
description: Emscripten cache directory.
godot-cpp-directory:
description: Emscripten cache folder.
godot-cpp_folder:
default: 'godot-cpp/'
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).
gdextension-directory:
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/folder/', ending in a slash).
gdextension_folder:
default: ''
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).
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/folder/', ending in a slash).
runs:
using: composite
@ -73,7 +73,7 @@ runs:
uses: mymindstorm/setup-emsdk@v13
with:
version: ${{ inputs.em_version }}
actions-cache-folder: ${{ inputs.em-cache-directory }}.${{ inputs.float-precision }}.${{ inputs.build-target-type }}
actions-cache-folder: ${{ inputs.em_cache_folder }}.${{ inputs.float-precision }}.${{ inputs.build-target-type }}
- name: Web - Verify Emscripten setup
if: ${{ inputs.platform == 'web' }}
shell: sh
@ -105,22 +105,22 @@ runs:
uses: actions/cache@v4
with:
path: |
${{ github.workspace }}/${{ inputs.gdextension-directory }}${{ inputs.scons-cache }}
${{ github.workspace }}/${{ inputs.godot-cpp-directory }}${{ inputs.scons-cache }}
${{ github.workspace }}/${{ inputs.gdextension_folder }}${{ inputs.scons-cache }}
${{ github.workspace }}/${{ inputs.godot-cpp_folder }}${{ inputs.scons-cache }}
key: ${{ inputs.platform }}_${{ inputs.arch }}_${{ inputs.float-precision }}_${{ inputs.build-target-type }}_cache
# Build godot-cpp
- name: Build godot-cpp Debug Build
shell: sh
env:
SCONS_CACHE: ${{ github.workspace }}/${{ inputs.godot-cpp-directory }}${{ inputs.scons-cache }}
SCONS_CACHE: ${{ github.workspace }}/${{ inputs.godot-cpp_folder }}${{ inputs.scons-cache }}
run: |
scons target=${{ inputs.build-target-type }} platform=${{ inputs.platform }} arch=${{ inputs.arch }} generate_bindings=yes precision=${{ inputs.float-precision }}
working-directory: ${{ inputs.godot-cpp-directory }}
working-directory: ${{ inputs.godot-cpp_folder }}
# Build gdextension
- name: Build GDExtension Debug Build
shell: sh
env:
SCONS_CACHE: ${{ github.workspace }}/${{ inputs.gdextension-directory }}${{ inputs.scons-cache }}
SCONS_CACHE: ${{ github.workspace }}/${{ inputs.gdextension_folder }}${{ inputs.scons-cache }}
run: |
scons target=${{ inputs.build-target-type }} platform=${{ inputs.platform }} arch=${{ inputs.arch }} precision=${{ inputs.float-precision }}
working-directory: ${{ inputs.gdextension-directory }}
working-directory: ${{ inputs.gdextension_folder }}

3
.gitignore vendored
View File

@ -1,5 +1,4 @@
# Godot auto generated files
*.gen.*
# Godot 4+ specific ignores
.godot/
# Ignore library files but not the gdextension file