feat(stage-tamagotchi-godot): migrate C# projects to .NET 10 (#2169)

This commit is contained in:
Garfield Lee
2026-08-02 18:43:24 +08:00
committed by GitHub
parent 9aa27af108
commit cfd9c26f09
34 changed files with 428 additions and 80 deletions
+8 -8
View File
@@ -26,12 +26,12 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
dotnet-version: '10.0.x'
# Lint Godot C# code
- name: Lint Godot C#
working-directory: ./engines/stage-tamagotchi-godot
run: dotnet format stage-tamagotchi-godot.sln --verify-no-changes
run: dotnet format stage-tamagotchi-godot.slnx --verify-no-changes
- run: docker run -v `pwd`:`pwd` -w `pwd` ghcr.io/realm/swiftlint:latest
working-directory: ./apps/stage-pocket
@@ -86,13 +86,13 @@ jobs:
if: matrix.app_name == 'stage-tamagotchi-godot'
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
dotnet-version: '10.0.x'
- name: Setup Godot
if: matrix.app_name == 'stage-tamagotchi-godot'
uses: chickensoft-games/setup-godot@v2
with:
version: 4.6.2
version: 4.7.1
use-dotnet: true
include-templates: true
@@ -106,8 +106,8 @@ jobs:
if: matrix.app_name == 'stage-tamagotchi-godot'
working-directory: ./engines/stage-tamagotchi-godot
run: |
mkdir -p build/linux
godot --headless --export-release "Linux x64" build/linux/godot-stage
mkdir -p out/linux
godot --headless --export-release "Linux x64" out/linux/godot-stage
unit-test:
name: Unit Test
@@ -135,13 +135,13 @@ jobs:
# if: matrix.app_name == 'stage-tamagotchi-godot'
# uses: actions/setup-dotnet@v4
# with:
# dotnet-version: '8.0.x'
# dotnet-version: '10.0.x'
# - name: Setup Godot
# if: matrix.app_name == 'stage-tamagotchi-godot'
# uses: chickensoft-games/setup-godot@v2
# with:
# version: 4.6.2
# version: 4.7.1
# use-dotnet: true
# include-templates: true
+8 -8
View File
@@ -143,12 +143,12 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
dotnet-version: '10.0.x'
- name: Setup Godot
uses: chickensoft-games/setup-godot@v2
with:
version: '4.6.2'
version: '4.7.1'
use-dotnet: true
include-templates: true
@@ -157,24 +157,24 @@ jobs:
working-directory: ./engines/stage-tamagotchi-godot
shell: bash
run: |
mkdir -p build/win
godot --headless --export-release "Windows Desktop" build/win/godot-stage.exe
mkdir -p out/win
godot --headless --export-release "Windows Desktop" out/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
mkdir -p out/mac
godot --headless --export-release "macOS" out/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
mkdir -p out/linux
godot --headless --export-release "Linux ${{ matrix.arch }}" out/linux/godot-stage
- name: Build (Windows Only) # Windows
if: matrix.os == 'windows-latest'