Skip to content

Commit

Permalink
import action
Browse files Browse the repository at this point in the history
  • Loading branch information
pkdawson committed Jun 30, 2024
1 parent ca4df00 commit a78f331
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 22 deletions.
21 changes: 21 additions & 0 deletions .github/actions/import/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Import
description: Import
inputs:
path:
description: Path
required: true

runs:
using: composite
steps:
- name: Prep
shell: bash
run: |
cd imgui-godot-*
cd imgui-godot-*
cd ${{ inputs.path }}
godotenv addons install
mkdir .godot
echo "res://addons/imgui-godot/imgui-godot-native.gdextension" > .godot/extension_list.cfg
$GODOT --headless --import || true
echo "GAMEDIR=$(pwd)" >> $GITHUB_ENV
34 changes: 12 additions & 22 deletions .github/workflows/gdext.yml
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,8 @@ jobs:
gdver: ["4.2.2", "4.3.0-beta.2"]

steps:
- uses: actions/checkout@v4

- uses: actions/download-artifact@v4
with:
pattern: imgui-godot-*_imgui*
Expand All @@ -300,19 +302,13 @@ jobs:
with:
version: ${{ matrix.gdver }}

- name: Prep
run: |
cd imgui-godot-*
cd imgui-godot-*
ls -R
cd doc/examples/GdsGameProject
mkdir ../export
godotenv addons install
timeout 10 $GODOT --headless --import || true
$GODOT --headless --import
echo "GAMEDIR=$(pwd)" >> $GITHUB_ENV
- name: Import
uses: ./.github/actions/import
with:
path: doc/examples/GdsGameProject

- name: Export Debug
shell: bash
run: |
cd $GAMEDIR
$GODOT --headless --export-debug $RUNNER_OS
Expand All @@ -321,6 +317,7 @@ jobs:
rm -rf *
- name: Export Release
shell: bash
run: |
cd $GAMEDIR
$GODOT --headless --export-release $RUNNER_OS
Expand Down Expand Up @@ -359,17 +356,10 @@ jobs:
with:
version: ${{ matrix.gdver }}

- name: Prep
shell: bash
run: |
cd imgui-godot-*
cd imgui-godot-*
cd doc/test
godotenv addons install
mkdir .godot
echo "res://addons/imgui-godot/imgui-godot-native.gdextension" > .godot/extension_list.cfg
$GODOT --headless --import || true
echo "GAMEDIR=$(pwd)" >> $GITHUB_ENV
- name: Import
uses: ./.github/actions/import
with:
path: doc/test

- name: Run tests
shell: bash
Expand Down

0 comments on commit a78f331

Please sign in to comment.