Skip to content

Fix macOS CI (XQuartz) and run R-CMD-check on development - #129

Merged
mstackhouse merged 2 commits into
developmentfrom
ci_macos_xquartz
Nov 4, 2026
Merged

mstackhouse merged 2 commits into
developmentfrom
ci_macos_xquartz

Conversation

@mstackhouse

Copy link
Copy Markdown
Member

Problem

The macOS-latest (release) R-CMD-check job fails before clinify is installed:

unable to load shared object '.../gdtools/libs/gdtools.so':
  Library not loaded: /opt/X11/lib/libXrender.1.dylib

macos-latest now resolves to the macos-26-arm64 runner image, which does not ship XQuartz. The CRAN macOS binary of gdtools, a flextable dependency, links against XQuartz's libXrender. CRAN's own macOS builders have XQuartz installed, so this affects CI only.

Separately, the workflow's branch filter listed dev rather than development. That's why PRs into development, including #127, never ran R-CMD-check.

Changes

  • Add a macOS-only brew install --cask xquartz step before dependency setup.
  • Add development to the push and pull_request branch filters. This PR targets development, so it exercises the fix itself.

The 0.4.1 CRAN submission did not depend on this change; it is to be merged after CRAN accepts.

🤖 Generated with Claude Code

mstackhouse and others added 2 commits November 4, 2026 12:24
macos-latest moved to the macos-26-arm64 image, which does not ship
XQuartz. The CRAN binary of gdtools (pulled in by flextable) links
against /opt/X11/lib/libXrender.1.dylib, so it failed to load and the
macOS job could not install clinify at all.

Also run R-CMD-check for pushes and PRs on `development`. The trigger
listed `dev`, so PRs into development, such as #127, only ran pkgdown
and coverage.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
R CMD INSTALL --build loads clinify, and with it gdtools, so the
macOS binary build hits the same missing libXrender as R-CMD-check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mstackhouse
mstackhouse merged commit e2141f1 into development Nov 4, 2026
8 of 10 checks passed
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