Files
AppKit/.gitea/workflows/build.yaml
T
James MaesandClaude Opus 5.5 1abae0aa71
windows / windows (push) Canceled after 0s
build / windows (push) Canceled after 0s
ci: build on the shared ci-workflows Windows workflow
Locked restore, warnings-as-errors build, dotnet format, tests with the 100%
coverage gate and the NuGet pack run on the KOF Windows host runner; v* tags
attach the packages and SHA256SUMS to the Gitea release. Removes the note on
the retired central native verification.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 07:33:17 -06:00

23 lines
1.1 KiB
YAML

name: build
on:
push:
branches: ['**']
tags: ['v*']
jobs:
windows:
uses: self:KofTwentyTwo/ci-workflows/.gitea/workflows/windows.yaml@native-workflows
secrets: inherit
with:
commands: |
dotnet restore AppKit.slnx -p:Platform=x64 --locked-mode
dotnet build AppKit.slnx -p:Platform=x64 -warnaserror --no-restore
# The WinUI sample is built directly so the format workspace can load its generated XAML code.
dotnet build samples/AppKit.Sample.WinUI/AppKit.Sample.WinUI.csproj -p:Platform=x64 -warnaserror --no-restore
$env:Platform = 'x64'
dotnet format AppKit.slnx --verify-no-changes --severity warn --no-restore
Remove-Item Env:Platform
dotnet test tests/KofTwentyTwo.AppKit.Tests --no-build --settings coverage.runsettings --collect:"XPlat Code Coverage" --logger trx --results-directory TestResults
./build/Assert-Coverage.ps1 -ResultsDirectory TestResults -Packages KofTwentyTwo.AppKit,KofTwentyTwo.AppKit.Updates
dotnet pack AppKit.slnx -c Release -p:Platform=x64 -o artifacts/nuget
artifacts: artifacts/nuget/*.nupkg