杂项: 升级项目至 .NET 10.0 并添加应用图标 #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [ master, main, develop ] | |
| pull_request: | |
| branches: [ master, main, develop ] | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '10.0.x' | |
| - name: Restore dependencies | |
| run: dotnet restore | |
| - name: Build | |
| run: dotnet build --configuration Release --no-restore | |
| - name: Test build output | |
| run: | | |
| if (Test-Path "./bin/Release/net10.0/ProgramBox.exe") { | |
| Write-Host "✓ Build successful - ProgramBox.exe found" | |
| } else { | |
| Write-Error "✗ Build failed - ProgramBox.exe not found" | |
| exit 1 | |
| } | |
| shell: pwsh |