Add Windows build verification

This commit is contained in:
Ochenstarik 2026-07-16 18:18:03 +07:00
parent 27e71a9831
commit 4015e3e777

30
.github/workflows/windows-build.yml vendored Normal file
View file

@ -0,0 +1,30 @@
name: Windows build
on:
push:
branches: ['**']
pull_request:
permissions:
contents: read
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up .NET 10
uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.0.x
- name: Restore
run: dotnet restore src/ServerMonitorManager.Desktop/ServerMonitorManager.Desktop.csproj -p:Platform=x64
- name: Build x64 Release
run: dotnet build src/ServerMonitorManager.Desktop/ServerMonitorManager.Desktop.csproj --configuration Release -p:Platform=x64 --no-restore
- name: Verify formatting
run: dotnet format src/ServerMonitorManager.Desktop/ServerMonitorManager.Desktop.csproj --verify-no-changes --no-restore