Skip to content

Build ITK wheels and ITKPythonBuilds caches on GitHub Actions (weekly and release) #126

Open

Description

@thewtex

Suggested-by: @fbudin69500

Activity

  1. changed the title [-]Build / Deploy on Azure Pipelines[/-] [+]Build / Deploy on GitHub Actions[/+] on Feb 11, 2020
  2. thewtex commented on Oct 21, 2020

    @thewtex
    MemberAuthor

    In the process, migrate to the ITK repository.

  3. thewtex commented on Nov 24, 2022

    @thewtex
    MemberAuthor

    Investigate cibuildwheel.

  4. hjmjohnson commented on Nov 22, 2026

    @hjmjohnson
    Member

    A draft weekly wheel build on GitHub Actions (ccache on Linux and macOS, sccache on Windows) is on branch weekly-wheels-gha in BRAINSia/ITKPythonPackage. It is built on top of #312 and has not been run yet.

    Estimated times on standard runners are 6 to 10 hours per target, so the workflow splits each build into two chained stages; the compiler cache for all four targets is estimated at 10 to 12 GB, at the repository's default cache limit. A trial run will confirm the times and cache sizes.

  5. hjmjohnson commented on Nov 25, 2026

    @hjmjohnson
    Member

    Still wanted, with a narrower goal: ITKRemoteModuleBuildTestPackageAction builds module wheels against existing ITKPythonBuilds caches, but nothing on CI builds ITK's own wheels or those caches. Recommend keeping this open, retitled to "Build ITK wheels and ITKPythonBuilds caches on GitHub Actions (weekly and release)"; the cibuildwheel idea is superseded by the pixi build in #312.

    Current state
    • main has three workflows (tests.yaml, docs.yaml,
      pre-commit.yaml), none of which builds ITK.
    • Releases are built by hand on four hosts with
      pixi run release-wheels <itk-ref>, then published with
      pixi run -e publish publish-wheels (PyPI) and
      pixi run -e publish publish-tarball-cache (ITKPythonBuilds).
    • A draft weekly workflow is on weekly-wheels-gha in
      BRAINSia/ITKPythonPackage and has not been run.
    What a release workflow needs
    • Runners: ubuntu-24.04, ubuntu-24.04-arm, macos-15,
      windows-2022.
    • Time: 1.5 to 2.5 h per platform on a 12-core workstation, estimated
      6 to 10 h on standard runners. The job limit is 6 h, so each target
      needs two chained jobs, or a paid larger runner (estimated $45 to $50
      a week for all four).
    • Compiler cache: about 10 to 12 GB for four targets, at the 10 GB
      default repository limit.
    • Secrets: a PyPI token or trusted publishing, and a token that can
      write releases on ITKPythonBuilds.
  6. changed the title [-]Build / Deploy on GitHub Actions[/-] [+]Build ITK wheels and ITKPythonBuilds caches on GitHub Actions (weekly and release)[/+] on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions