Skip to content

杂项: 升级项目至 .NET 10.0 并添加应用图标 #3

杂项: 升级项目至 .NET 10.0 并添加应用图标

杂项: 升级项目至 .NET 10.0 并添加应用图标 #3

Workflow file for this run

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