Skip to content

ENH: Cross-platform CI with GitHub Actions - #153

Merged
dzenanz merged 4 commits into
Kitware:masterfrom
dzenanz:ci-github-actions-matrix
Dec 2, 2026
Merged

dzenanz merged 4 commits into
Kitware:masterfrom
dzenanz:ci-github-actions-matrix

Conversation

@dzenanz

@dzenanz dzenanz commented Dec 1, 2026

Copy link
Copy Markdown
Member

Closes #143.

Replaces the defunct Travis CI, AppVeyor, and CircleCI setups with a GitHub Actions matrix: Ubuntu GCC (shared), Ubuntu Clang (static, system zlib), macOS AppleClang (shared), and Windows MSVC (shared and static). A second job builds ITK's ITKIOMeta and ITKIOSpatialObjects tests against this checkout, replacing the CircleCI Docker job.

Two Windows DLL build bugs surfaced and are fixed in separate commits:

  • itkzlib/zlib.def exported gz* functions whose sources were dropped in the zlib 1.3.1 update.
  • The standalone MetaIO target never defined metaio_EXPORTS, so its symbols were declared dllimport while building the DLL.

The README is also converted to Markdown with a single CI badge.

Code and description prepared with AI assistance (Claude Code).

🤖 Generated with Claude Code

The zlib 1.3.1 update dropped the gz*.c sources, so linking itkzlib as
a Windows DLL failed with unresolved externals for these exports.
localMetaConfiguration.h selects dllexport on metaio_EXPORTS, but only
the VTK build defined it. CMake's default symbol for the MetaIO target
is MetaIO_EXPORTS, so the library compiled its own definitions as
dllimport and failed.
Travis CI, AppVeyor, and CircleCI no longer run. The matrix covers GCC,
Clang, AppleClang, and MSVC with shared and static libraries plus the
system zlib. A second job builds ITK's MetaIO consumers against this
checkout, replacing the Docker image the CircleCI job used.

Closes Kitware#143.
@dzenanz
dzenanz marked this pull request as ready for review December 1, 2026 16:37

@hjmjohnson hjmjohnson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional work needs to be done with administrator rights to disable the circle ci failures.

@dzenanz

dzenanz commented Dec 2, 2026

Copy link
Copy Markdown
Member Author

I disabled it, after seeing this failure here. I expect the next PR to be green.

@dzenanz
dzenanz merged commit 9401a32 into Kitware:master Dec 2, 2026
6 of 7 checks passed
@dzenanz
dzenanz deleted the ci-github-actions-matrix branch December 2, 2026 03:49
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.

Update CI

2 participants