Page MenuHomePhabricator

Fix macOS CI builds
Closed, ResolvedPublic

Description

  • At last Jenkins plugin update, the CMake build plugin was updated from v2.6.3 to v4.0.1. The new version installs Linux binaries of CMake on macOS instead of macOS binaries. I already reverted this plugin to v2.6.3.
  • Since we want to support the latest two macOS versions, an upgrade from Mojave to Catalina was overdue for a long time already. A few fixes are necessary, though:
    • macOS codename extraction in the CDash script appends backslashes
    • PCRE and SWIG both have trouble to get compiled without creating a shortlink of the actual C standard library location to the old /usr/include
    • We also need to update all CI job names, secret tokens, and URIs in Phabricator and Git hooks

Event Timeline

kislinsk triaged this task as Unbreak Now! priority.Jun 11 2021, 3:37 PM
kislinsk created this task.
  • For now I will disable SWIG (and PCRE) builds on macOS and require it to be provided (for example via Homebrew brew install swig).
  • I already renamed everything in Jenkins, Phabricator, and Git hooks
  • The macOS codename extraction can be easily fixed adding the backslash to the extraction regex

Deleted branch from rMITK MITK: bugfix/T28546-macOSCatalina.

We also need to fix the Boost binary build on macOS.

Deleted branch from rMITK MITK: bugfix/T28546-macOSCatalina-Boost.

I reported the cmakebuilder-plugin issue to Jenkins: https://issues.jenkins.io/browse/JENKINS-65893