chore(ci): add stage-tamagotchi-godot in publish (#1841)

This commit is contained in:
Andrew Qi
2026-05-21 03:04:22 +08:00
committed by GitHub
parent bd47b2c8ba
commit cd0d7fe28e
5 changed files with 74 additions and 3 deletions
+1 -1
View File
@@ -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
+42
View File
@@ -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' }}