Skip to content

Commit

Permalink
yet another action
Browse files Browse the repository at this point in the history
  • Loading branch information
pkdawson committed Jul 1, 2024
1 parent a03a592 commit a6c579e
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 21 deletions.
1 change: 0 additions & 1 deletion .github/actions/import/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@ runs:
godotenv addons install
mkdir .godot
echo "res://addons/imgui-godot/imgui-godot-native.gdextension" > .godot/extension_list.cfg
sleep 1
$GODOT --headless --import || true
echo "GAMEDIR=$(pwd)" >> $GITHUB_ENV
31 changes: 31 additions & 0 deletions .github/actions/run-test-project/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Run test project
description: Run test project
inputs:
exe:
description: Executable
required: true

runs:
using: composite
steps:
- name: Run tests
shell: bash
run: |
cd $GAMEDIR
$GODOT --headless --debug
- name: Export debug
shell: bash
run: |
cd $GAMEDIR
$GODOT --headless --export-debug $RUNNER_OS
cd export
./${{ inputs.exe }} --headless
- name: Export release
shell: bash
run: |
cd $GAMEDIR
$GODOT --headless --export-release $RUNNER_OS
cd export
./${{ inputs.exe }} --headless
27 changes: 7 additions & 20 deletions .github/workflows/gdext.yml
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,10 @@ jobs:
- os: windows-latest
name: 🪟Test
test_exe: test.exe
exclude:
# frequently gets stuck on import despite workaround
- os: windows-latest
gdver: "4.2.2"

name: ${{ matrix.name }} (${{ matrix.gdver }})
runs-on: ${{ matrix.os }}
Expand All @@ -393,23 +397,6 @@ jobs:
path: doc/test/gdscript

- name: Run tests
shell: bash
run: |
cd $GAMEDIR
$GODOT --headless --debug
- name: Export debug
shell: bash
run: |
cd $GAMEDIR
$GODOT --headless --export-debug $RUNNER_OS
cd export
./${{ matrix.test_exe }} --headless
- name: Export release
shell: bash
run: |
cd $GAMEDIR
$GODOT --headless --export-release $RUNNER_OS
cd export
./${{ matrix.test_exe }} --headless
uses: ./.github/actions/run-test-project
with:
exe: ${{ matrix.test_exe }}

0 comments on commit a6c579e

Please sign in to comment.