Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pkdawson committed Dec 1, 2022
1 parent ce15d1e commit 5573d51
Showing 1 changed file with 22 additions and 18 deletions.
40 changes: 22 additions & 18 deletions .github/workflows/godot.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 🤖 Godot Export
name: 🤖 Godot Checks

on:
push:
Expand All @@ -14,30 +14,34 @@ env:

jobs:
export_game:
name: Export Game
name: Run with Godot
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Export
uses: firebelley/[email protected]
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
godot_executable_download_url: https://downloads.tuxfamily.org/godotengine/${{ env.gdver }}/${{ env.gdrel }}/mono/Godot_v${{ env.gdver }}-${{ env.gdrel }}_mono_linux_x86_64.zip
godot_export_templates_download_url: https://downloads.tuxfamily.org/godotengine/${{ env.gdver }}/${{ env.gdrel }}/mono/Godot_v${{ env.gdver }}-${{ env.gdrel }}_mono_export_templates.tpz
relative_project_path: ./
relative_export_path: export
export_debug: true
archive_output: false
use_godot_4: true

# - uses: actions/upload-artifact@v3
# with:
# name: upload export
# path: ${{ steps.export.outputs.archive_directory }}
dotnet-version: 6.0.x

- name: Build
run: dotnet build

- name: Download Godot
run: |
cd $HOME
wget https://downloads.tuxfamily.org/godotengine/${{ env.gdver }}/${{ env.gdrel }}/mono/Godot_v${{ env.gdver }}-${{ env.gdrel }}_mono_linux_x86_64.zip
unzip Godot_v${{ env.gdver }}-${{ env.gdrel }}_mono_linux_x86_64.zip
# HACK: no better solution for now
- name: Import resources
run: |
export gdbin=$HOME/Godot_v${{ env.gdver }}-${{ env.gdrel }}_mono_linux_x86_64/Godot_v${{ env.gdver }}-${{ env.gdrel }}_mono_linux.x86_64
timeout 45 $gdbin --headless --editor || true
# TODO: run tests with the exported binary
- name: Test
run: |
cd export/LinuxX11
"./Dear ImGui for Godot Demo.x86_64" --headless --quit
export gdbin=$HOME/Godot_v${{ env.gdver }}-${{ env.gdrel }}_mono_linux_x86_64/Godot_v${{ env.gdver }}-${{ env.gdrel }}_mono_linux.x86_64
$gdbin --headless --quit

0 comments on commit 5573d51

Please sign in to comment.