From cd0d7fe28e89df30de97a27c4ee9cd193dfd2d98 Mon Sep 17 00:00:00 2001 From: Andrew Qi Date: Thu, 21 May 2026 03:04:22 +0800 Subject: [PATCH] chore(ci): add stage-tamagotchi-godot in publish (#1841) --- .github/workflows/ci.yml | 2 +- .github/workflows/release-tamagotchi.yml | 42 +++++++++++++++++++ .../stage-tamagotchi-godot/export_presets.cfg | 30 ++++++++++++- engines/stage-tamagotchi-godot/project.godot | 1 + nix/pnpm-deps-hash.txt | 2 +- 5 files changed, 74 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 26fa7526f..580709a4e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -107,7 +107,7 @@ jobs: working-directory: ./engines/stage-tamagotchi-godot run: | mkdir -p build/linux - godot --headless --export-release "Linux" build/linux/godot-stage + godot --headless --export-release "Linux x64" build/linux/godot-stage typecheck: name: Type Check diff --git a/.github/workflows/release-tamagotchi.yml b/.github/workflows/release-tamagotchi.yml index a7510e6bd..3ff55577c 100644 --- a/.github/workflows/release-tamagotchi.yml +++ b/.github/workflows/release-tamagotchi.yml @@ -122,6 +122,12 @@ jobs: - uses: pnpm/action-setup@v4 with: run_install: false + + - name: Install macOS System Dependencies for node-canvas + if: runner.os == 'macOS' + run: | + brew install pkg-config cairo pango jpeg giflib librsvg + - uses: actions/setup-node@v6 with: node-version: lts/* @@ -134,6 +140,42 @@ jobs: - run: pnpm run build:packages + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '8.0.x' + + - name: Setup Godot + uses: chickensoft-games/setup-godot@v2 + with: + version: '4.6.2' + use-dotnet: true + include-templates: true + + - name: Export Godot Stage (Windows) + if: matrix.os == 'windows-latest' + working-directory: ./engines/stage-tamagotchi-godot + shell: bash + run: | + mkdir -p build/win + godot --headless --export-release "Windows Desktop" build/win/godot-stage.exe + + - name: Export Godot Stage (macOS) + if: matrix.os == 'macos-15-intel' || matrix.os == 'macos-26' + working-directory: ./engines/stage-tamagotchi-godot + shell: bash + run: | + mkdir -p build/mac + godot --headless --export-release "macOS" build/mac/godot-stage.app + + - name: Export Godot Stage (Linux) + if: matrix.os == 'ubuntu-latest' || matrix.os == 'ubuntu-24.04-arm' + working-directory: ./engines/stage-tamagotchi-godot + shell: bash + run: | + mkdir -p build/linux + godot --headless --export-release "Linux ${{ matrix.arch }}" build/linux/godot-stage + - name: Build (Windows Only) # Windows if: matrix.os == 'windows-latest' run: pnpm run -F @proj-airi/stage-tamagotchi build && pnpm -F @proj-airi/stage-tamagotchi exec electron-builder build ${{ matrix.builder-args }} --publish=${{ (inputs.build_only || inputs.artifacts_only) && 'never' || 'onTagOrDraft' }} diff --git a/engines/stage-tamagotchi-godot/export_presets.cfg b/engines/stage-tamagotchi-godot/export_presets.cfg index 64a992ee4..9350d2384 100644 --- a/engines/stage-tamagotchi-godot/export_presets.cfg +++ b/engines/stage-tamagotchi-godot/export_presets.cfg @@ -39,7 +39,7 @@ ssh_remote_deploy/enabled=false [preset.1] -name="Linux" +name="Linux x64" platform="Linux/X11" runnable=true dedicated_server=false @@ -55,6 +55,7 @@ encrypt_directory=false [preset.1.options] +binary_format/architecture="x86_64" custom_template/debug="" custom_template/release="" debug/export_console_wrapper=0 @@ -95,3 +96,30 @@ application/short_version="1.0" application/version="1.0" application/icon="" ssh_remote_deploy/enabled=false + +[preset.3] + +name="Linux arm64" +platform="Linux/X11" +runnable=true +dedicated_server=false +custom_features="" +export_filter="all_resources" +include_filter="" +exclude_filter="" +export_path="build/linux/godot-stage" +encryption_include_filters="" +encryption_exclude_filters="" +encrypt_pck=false +encrypt_directory=false + +[preset.3.options] + +binary_format/architecture="arm64" +custom_template/debug="" +custom_template/release="" +debug/export_console_wrapper=0 +binary_format/embed_pck=true +texture_format/s3tc_bptc=true +texture_format/etc2_astc=false +ssh_remote_deploy/enabled=false \ No newline at end of file diff --git a/engines/stage-tamagotchi-godot/project.godot b/engines/stage-tamagotchi-godot/project.godot index fb069a9bb..90b9c0d17 100644 --- a/engines/stage-tamagotchi-godot/project.godot +++ b/engines/stage-tamagotchi-godot/project.godot @@ -30,3 +30,4 @@ enabled=PackedStringArray("res://addons/Godot-MToon-Shader/plugin.cfg", "res://a [rendering] rendering_device/driver.windows="d3d12" +textures/vram_compression/import_etc2_astc=true diff --git a/nix/pnpm-deps-hash.txt b/nix/pnpm-deps-hash.txt index 53771f00a..3240dab51 100644 --- a/nix/pnpm-deps-hash.txt +++ b/nix/pnpm-deps-hash.txt @@ -1 +1 @@ -sha256-8vcYH/7jbCWFn7NzO6zu7yv+x8Kjw0Ktf4MEAHEvB9g= +sha256-Ew2LklKsoF0EAdsNjIm8OJcMiFfZhyq3tyBsIkniX8E=