From 5573d513778dd3611bc9c2d749e1cd6b18b1e75f Mon Sep 17 00:00:00 2001 From: Patrick Dawson Date: Thu, 1 Dec 2022 03:53:18 +0100 Subject: [PATCH] update workflow --- .github/workflows/godot.yml | 40 ++++++++++++++++++++----------------- 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/.github/workflows/godot.yml b/.github/workflows/godot.yml index 4bcfea6..de051be 100644 --- a/.github/workflows/godot.yml +++ b/.github/workflows/godot.yml @@ -1,4 +1,4 @@ -name: 🤖 Godot Export +name: 🤖 Godot Checks on: push: @@ -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/godot-export@v4.4.0 + - 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