diff --git a/.github/workflows/godot.yml b/.github/workflows/godot.yml new file mode 100644 index 0000000..03be723 --- /dev/null +++ b/.github/workflows/godot.yml @@ -0,0 +1,39 @@ +name: 🤖 Godot + +on: + push: + branches-ignore: + - godot3 + pull_request: + branches-ignore: + - godot3 + +jobs: + export_game: + name: Export Game + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Export + uses: firebelley/godot-export@v4.4.0 + with: + godot_executable_download_url: https://downloads.tuxfamily.org/godotengine/4.0/beta6/mono/Godot_v4.0-beta6_mono_linux_x86_64.zip + godot_export_templates_download_url: https://downloads.tuxfamily.org/godotengine/4.0/beta6/mono/Godot_v4.0-beta6_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 }} + + # TODO: run tests with the exported binary + - name: Test + run: | + cd export/LinuxX11 + "./Dear ImGui for Godot Demo.x86_64" --headless --quit diff --git a/.gitignore b/.gitignore index 92aa8eb..8aad82d 100644 --- a/.gitignore +++ b/.gitignore @@ -3,7 +3,6 @@ .vs/ *.old imgui.ini -export_presets.cfg .godot/ *.user Properties/ diff --git a/export_presets.cfg b/export_presets.cfg new file mode 100644 index 0000000..a187d82 --- /dev/null +++ b/export_presets.cfg @@ -0,0 +1,29 @@ +[preset.0] + +name="Linux/X11" +platform="Linux/X11" +runnable=true +custom_features="" +export_filter="all_resources" +include_filter="" +exclude_filter="" +export_path="export/Dear ImGui for Godot Demo.x86_64" +encryption_include_filters="" +encryption_exclude_filters="" +encrypt_pck=false +encrypt_directory=false +script_export_mode=1 +script_encryption_key="" + +[preset.0.options] + +custom_template/debug="" +custom_template/release="" +debug/export_console_script=1 +binary_format/embed_pck=false +texture_format/bptc=false +texture_format/s3tc=true +texture_format/etc=false +texture_format/etc2=false +texture_format/no_bptc_fallbacks=true +binary_format/architecture="x86_64"