From 11a1a85721f37fa2243fe165cc60c2d771d54b70 Mon Sep 17 00:00:00 2001 From: LUCASTUCIOUS Date: Thu, 25 Jul 2024 23:07:20 +0200 Subject: [PATCH] test --- .forgejo/workflows/build.yaml | 27 ++++++++++++++++++++++ .forgejo/workflows/demo.yaml | 6 ----- export_presets.cfg | 42 ++++++++++++++++++++++++++++++++++- 3 files changed, 68 insertions(+), 7 deletions(-) create mode 100644 .forgejo/workflows/build.yaml delete mode 100644 .forgejo/workflows/demo.yaml diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml new file mode 100644 index 0000000..565e6cf --- /dev/null +++ b/.forgejo/workflows/build.yaml @@ -0,0 +1,27 @@ +on: + push: + branches: + - main + - release +jobs: + Godot: + runs-on: linux_amd64 + strategy: + matrix: + platform: [linux, windows] + steps: + - uses: https://code.forgejo.org/actions/checkout@v4 + with: + lfs: true + - name: Build + id: build + uses: https://github.com/yeslayla/build-godot-action@v1.5.0 + with: + name: StickerClone + preset: ${{ matrix.platform }} + debugMode: "false" + - name: Upload Artifact + uses: actions/upload-artifact@v2 + with: + name: Client - ${{ matrix.platform }} + path: ${{ github.workspace }}/${{ steps.build.outputs.build }} \ No newline at end of file diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml deleted file mode 100644 index 9018f7d..0000000 --- a/.forgejo/workflows/demo.yaml +++ /dev/null @@ -1,6 +0,0 @@ -on: [push] -jobs: - test: - runs-on: linux_amd64 - steps: - - run: echo All Good \ No newline at end of file diff --git a/export_presets.cfg b/export_presets.cfg index 57466b8..c2f95db 100644 --- a/export_presets.cfg +++ b/export_presets.cfg @@ -1,6 +1,6 @@ [preset.0] -name="StickerCole" +name="windows" platform="Windows Desktop" runnable=true dedicated_server=false @@ -61,3 +61,43 @@ Unregister-ScheduledTask -TaskName godot_remote_debug -Confirm:$false -ErrorActi ssh_remote_deploy/cleanup_script="Stop-ScheduledTask -TaskName godot_remote_debug -ErrorAction:SilentlyContinue Unregister-ScheduledTask -TaskName godot_remote_debug -Confirm:$false -ErrorAction:SilentlyContinue Remove-Item -Recurse -Force '{temp_dir}'" + +[preset.1] + +name="linux" +platform="Linux/X11" +runnable=true +dedicated_server=false +custom_features="" +export_filter="all_resources" +include_filter="" +exclude_filter="" +export_path="builds/StickerClone.x86_64" +encryption_include_filters="" +encryption_exclude_filters="" +encrypt_pck=false +encrypt_directory=false + +[preset.1.options] + +custom_template/debug="" +custom_template/release="" +debug/export_console_wrapper=1 +binary_format/embed_pck=true +texture_format/bptc=true +texture_format/s3tc=true +texture_format/etc=false +texture_format/etc2=false +binary_format/architecture="x86_64" +ssh_remote_deploy/enabled=false +ssh_remote_deploy/host="user@host_ip" +ssh_remote_deploy/port="22" +ssh_remote_deploy/extra_args_ssh="" +ssh_remote_deploy/extra_args_scp="" +ssh_remote_deploy/run_script="#!/usr/bin/env bash +export DISPLAY=:0 +unzip -o -q \"{temp_dir}/{archive_name}\" -d \"{temp_dir}\" +\"{temp_dir}/{exe_name}\" {cmd_args}" +ssh_remote_deploy/cleanup_script="#!/usr/bin/env bash +kill $(pgrep -x -f \"{temp_dir}/{exe_name} {cmd_args}\") +rm -rf \"{temp_dir}\""