Skip to content

Run Portable Host on real Windows in GitHub Actions - #1

Draft
schlich wants to merge 1 commit into
mainfrom
windows-ci
Draft

schlich wants to merge 1 commit into
mainfrom
windows-ci

Conversation

@schlich

@schlich schlich commented Oct 24, 2026

Copy link
Copy Markdown
Collaborator

Until now every Windows result in docs/VALIDATION.md came from Wine on Linux. This adds .github/workflows/windows.yml, which runs the Windows build on a GitHub-hosted Windows runner.

  • build (ubuntu-latest): nix build .#msi .#host-windows, then uploads the MSI, portable-host.exe, SDL3.dll, and tests/replay as one artifact.

  • windows (windows-latest, needs build):

    • installs the MSI with msiexec /i … /qn /l*v install.log;
    • checks that C:\Program Files\Portable Host holds exactly the four packaged files (the host and DLL byte-identical to the build's), and that Windows lists the product as installed;
    • finds the Start-menu shortcut and reads its target, arguments, and working directory back with WScript.Shell;
    • replays every script in tests/replay against its golden trace with the installed host and component, and runs inspect;
    • plays the tour script in a window, recording SDL's video driver and renderer, checks the final frame, and checks every canvas pixel of the screenshot against the golden frame;
    • opens the Start-menu shortcut and closes the game's window;
    • uninstalls with msiexec /x … /qn and checks that nothing is left.

    Every step adds its results to the run's summary, and the logs and screenshots are uploaded as the windows-run artifact.

README.md and docs/VALIDATION.md will record what the runs show (runner image and version, renderer) and what is still not covered: signing, SmartScreen, and a person playing.

Draft until the workflow passes.

🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant