Skip to content

add Windows and macOS to build matrix, fix cross-platform issues#1547

Draft
sreeya12 wants to merge 3 commits intoLibrePDF:masterfrom
sreeya12:fix-macos-font
Draft

add Windows and macOS to build matrix, fix cross-platform issues#1547
sreeya12 wants to merge 3 commits intoLibrePDF:masterfrom
sreeya12:fix-macos-font

Conversation

@sreeya12
Copy link
Copy Markdown

@sreeya12 sreeya12 commented May 5, 2026

This PR expands CI coverage to include Windows and macOS runners alongside the existing Ubuntu configuration.
Changes:

Added os: [ubuntu-latest, windows-latest, macos-latest] matrix to the Maven build workflow
Removed pwd && ls -l debug step that fails on Windows PowerShell (the ls alias in PowerShell requires different argument syntax)
Added @DisabledOnOs(OS.MAC) annotation to FontTest.testFontStyleOfStyledFont to skip a test that relies on system fonts with specific TrueType OS/2 tables not present on macOS

Motivation:
As part of a research study on OS-specific CI failures in Java/Maven projects (George Mason University, CS 795), we found that OpenPDF's build and test suite is largely portable. Two issues prevented cross-platform CI: a bash-specific ls -l command in the workflow file, and a font test that assumes the presence of specific system fonts (the Courier.ttc font on macOS lacks the OS/2 TrueType table that the test expects).
Verification:
We ran the modified workflow 10 times on each OS. Results:

Ubuntu: 10/10 pass (no regression)
Windows: 10/10 pass (after removing ls -l)
macOS: 10/10 pass (after skipping font-dependent test)

Added a condition to disable the test on macOS.
Removed unnecessary directory listing in Maven workflow.
@codacy-production
Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 5, 2026

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