Skip to content

ci: run winit-appkit tests on macOS targets - #4767

Open
glaziermag wants to merge 1 commit into
rust-windowing:masterfrom
glaziermag:ci-appkit-tests
Open

glaziermag wants to merge 1 commit into
rust-windowing:masterfrom
glaziermag:ci-appkit-tests

Conversation

@glaziermag

Copy link
Copy Markdown

The Test winit AppKit step in .github/workflows/ci.yml only runs when contains(matrix.platform.target, 'macos'). The macOS targets in the matrix are x86_64-apple-darwin and aarch64-apple-darwin, so the step is skipped on every leg. Run tests doesn't cover the crate either, because cargo test only tests default-members = ["winit"]. As a result, the unit tests in winit-appkit (app.rs, monitor.rs, view.rs) haven't run in CI since the step was added in #4248. That includes the six view.rs tests added in #4596.

This PR changes the substring to 'darwin'. The other platform steps use the same kind of match ('apple' for CF, 'ios' for UIKit).

To check:

  • Latest master run, 38698580106: Test winit AppKit is skipped in all nine macOS jobs (stable, nightly and 1.86 × x86_64, Aarch64, Private APIs).

  • With this change on my fork, the step runs and passes in all nine (run 38826144943). The stable Aarch64 log shows 12 unit tests and 3 doctests passing.

  • Tested on all platforms changed (CI-only change; the macOS legs above)

  • Added an entry to the changelog module if knowledge of this change could be valuable to users (not user-facing)

  • Updated documentation to reflect any user-facing changes, including notes of platform-specific behavior (none)

  • Created or updated an example program if it would help users understand this functionality (n/a)

Generated with Claude Code (Claude Opus 5.5). The commit carries a Co-Authored-By trailer.

The step was gated on the target containing 'macos', but the macOS
targets are x86_64-apple-darwin and aarch64-apple-darwin, so it was
skipped on every leg.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant