Skip to content

Add Windows and macOS to build matrix, fix cross-platform issues#1

Open
addwes7 wants to merge 1 commit into
masterfrom
pr-branch
Open

Add Windows and macOS to build matrix, fix cross-platform issues#1
addwes7 wants to merge 1 commit into
masterfrom
pr-branch

Conversation

@addwes7
Copy link
Copy Markdown
Owner

@addwes7 addwes7 commented May 18, 2026

What is the purpose of this PR

Add Windows and macOS to the CI build matrix. Currently the workflow only runs on Ubuntu.

Expected results

Build and tests pass on all three operating systems (Ubuntu, Windows, macOS).

Actual results

Running the workflow on Windows and macOS without fixes produces the following errors:

  • Windows: The debug step uses pwd && ls -l. On Windows, ls maps to PowerShell's Get-ChildItem, and -l is interpreted as -LiteralPath, which requires an argument.

  • macOS: FontTest.testFontStyleOfStyledFont loads Courier.ttc and expects an OS/2 TrueType table. On macOS, the bundled Courier font does not include that table. This is a platform-specific font difference, not a code defect.

Description of fix

  1. Added OS build matrix (ubuntu-latest, windows-latest, macos-latest).
  2. Added shell: bash to the debug step so it runs correctly on Windows.
  3. Added Assumptions.assumeFalse to skip testFontStyleOfStyledFont on macOS where the required font table is unavailable. An alternative approach would be to comment out or remove the FontFactory.registerDirectories() call.

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