-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
677a5d1
commit 989f612
Showing
13 changed files
with
347 additions
and
22 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
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,50 @@ | ||
name: Export Tests | ||
description: Export and run test project | ||
inputs: | ||
executable: | ||
description: The Godot executable in CWD | ||
required: true | ||
godot-major: | ||
description: The major version of Godot being targeted used to configure export command | ||
required: true | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Linux Export Details | ||
if: runner.os == 'Linux' | ||
shell: bash | ||
run: echo "EXTENSION=x86_64" >> $GITHUB_ENV | ||
|
||
- name: MacOS Export Details | ||
if: runner.os == 'macOS' | ||
shell: bash | ||
run: echo "EXTENSION=app" >> $GITHUB_ENV | ||
|
||
- name: Windows Export Details | ||
if: runner.os == 'Windows' | ||
shell: bash | ||
run: echo "EXTENSION=exe" >> $GITHUB_ENV | ||
|
||
- name: Generic Export Command | ||
shell: bash | ||
run: echo "EXPORT_CMD=--export-release ${{ runner.os }} ../../WasmTest.${{ env.EXTENSION }}" >> $GITHUB_ENV | ||
|
||
- name: Godot 3.x Export Command | ||
if: inputs.godot-major == 3 | ||
shell: bash | ||
run: echo "EXPORT_CMD=--export ${{ runner.os }}" >> $GITHUB_ENV | ||
|
||
- name: Export | ||
shell: bash | ||
run: | | ||
./${{ inputs.executable }} --headless --no-window --path examples/wasm-test ${{ env.EXPORT_CMD }} | ||
echo "EXECUTABLE=WasmTest.${{ env.EXTENSION }}" >> $GITHUB_ENV | ||
- name: MacOS Executable | ||
if: runner.os == 'macOS' | ||
shell: bash | ||
run: echo "EXECUTABLE=WasmTest.app/Contents/MacOS/WasmTest" >> $GITHUB_ENV | ||
|
||
- name: Run Tests | ||
shell: ${{ runner.os == 'Windows' && 'pwsh' || 'bash' }} | ||
run: ./${{ env.EXECUTABLE }} --headless --no-window -- --key=val |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,4 +25,3 @@ runs: | |
if: runner.os == 'Windows' | ||
shell: bash | ||
run: python -m pip install pywin32 | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
wasmer/ | ||
wasmtime/ | ||
addons.zip | ||
templates/ | ||
*.os | ||
*.obj | ||
*.pdb | ||
|
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
.DS_Store | ||
.import/ | ||
.godot/** | ||
WasmTest.app | ||
*.import | ||
!.godot/extension_list.cfg | ||
!.godot/global_script_class_cache.cfg |
Oops, something went wrong.