Add copilot-setup-steps for Windows cloud agent env#543
Merged
Conversation
The Copilot coding agent defaults to Ubuntu, but winappcli targets net10.0-windows10.0.19041.0, publishes NativeAOT win-x64/win-arm64, and relies on Windows-only tooling (makeappx, signtool, MSIX bundling). On Ubuntu the agent cannot dotnet build the solution, so it has no way to validate its own work. Add .github/workflows/copilot-setup-steps.yml pinned to windows-latest with .NET 10 + Node 24, restoring both the C# solution and the npm workspace, plus a warm Debug build of the CLI. We skip the full build-cli.ps1 to stay well under the 30 min budget; the agent can run the full script (MSIX, NuGet, samples) on demand. NOTE: the Copilot integrated firewall is not compatible with Windows runners. It must be disabled in Settings -> Copilot -> Coding agent -> Firewall policy before this takes effect on agent tasks. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a dedicated GitHub Actions workflow that provides Copilot Coding Agent “setup steps” on a Windows runner, ensuring the agent can restore and build this Windows-only toolchain (net10.0-windows10.0.19041.0, NativeAOT, MSIX tooling) before starting work.
Changes:
- Introduces
.github/workflows/copilot-setup-steps.ymlwith the requiredcopilot-setup-stepsjob onwindows-latest. - Installs .NET 10 and Node 24, enables Windows Developer Mode, restores .NET/npm dependencies, and performs a warm Debug CLI build.
- Adds path-scoped
push/pull_requesttriggers plusworkflow_dispatchto smoke-test the setup when the workflow file changes.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Contributor
Build Metrics ReportBinary Sizes
Test Results✅ 993 passed, 1 skipped out of 994 tests in 423.5s (-46.8s vs. baseline) Test Coverage❌ 16.7% line coverage, 34.8% branch coverage · ✅ no change vs. baseline CLI Startup Time37ms median (x64, Updated 2026-05-20 04:19:45 UTC · commit |
zateutsch
approved these changes
May 21, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Copilot coding agent defaults to Ubuntu, but winappcli targets
net10.0-windows10.0.19041.0, publishes NativeAOTwin-x64/win-arm64, and relies on Windows-only tooling (makeappx, signtool, MSIX bundling, Pester sample tests). On Ubuntu the agent cannotdotnet buildthe solution, so it has no way to validate its own work.What this does
Adds
.github/workflows/copilot-setup-steps.ymlpinned towindows-latestwith:actions/setup-dotnet@v5) and Node 24 (actions/setup-node@v5) to matchbuild-package.yml.dotnet restoreon the solution +npm ciinsrc/winapp-npmto warm caches.WinApp.Cli.csprojto surface targeting-pack / restore issues before the agent starts.We deliberately skip the full
build-cli.ps1here — MSIX, NuGet, and sample-test packaging would eat most of the budget. The agent can run the full script on demand.Before merging
Important
The Copilot integrated firewall is not compatible with Windows runners. After merge, disable it in Settings → Copilot → Coding agent → Firewall policy → Disabled, otherwise every agent task will silently fail networking.
The
pull_requesttrigger on this file's own path means CI will run the setup once on this PR — that's the smoke test before it ever touches an agent session.