Skip to content

Commit

Permalink
WIP: DOC: ITK 5.4 RC 3 release documentation updates
Browse files Browse the repository at this point in the history
More specifics on macOS package builds, Linux ARM builds.
  • Loading branch information
thewtex committed Apr 10, 2024
1 parent 5f3adbd commit 560183e
Showing 1 changed file with 27 additions and 7 deletions.
34 changes: 27 additions & 7 deletions Documentation/Maintenance/Release.md
Expand Up @@ -348,6 +348,9 @@ tree that has been fully tested in the [Dashboard].

### Tag with a branch point reference

In the documentation below `$version` examples are `5.4rc03`, `5.4.0`, or
`5.4.1`.

In the source tree that was just updated, use the command

```bash
Expand Down Expand Up @@ -385,12 +388,12 @@ For minor releases, merge the release branch into `master` branch as for a
normal commit, and resolve conflicts (arising from mismatch in version number)
by keeping `master` branch versions.

Merge the `release` branch into the current named version branch, e.g. `5.4`.
Merge the `release` branch into the current named `$major_minor` version branch, e.g. `5.4`.

```bash
git checkout $version
git checkout $major_minor
git merge --ff-only release
git push upstream $version
git push upstream $major_minor
```

### Remote modules
Expand Down Expand Up @@ -553,16 +556,32 @@ git reset --hard HEAD~1
For Linux ARM builds, the steps are similar, but the wheel build step is:

```bash
docker run --privileged --rm tonistiigi/binfmt --install all
docker run -it -v $(pwd):/work/ quay.io/pypa/manylinux_2_28_aarch64:latest bash
sudo podman run --privileged --rm tonistiigi/binfmt --install all
podman run -it -v $(pwd):/work/ quay.io/pypa/manylinux_2_28_aarch64:2022-11-19-1b19e81 bash
# In the container
cd /work
yum install sudo
# Upgrade GPG keys
dnf upgrade -y almalinux-release
# Newer Python.cmake module required for the SABI
pipx upgrade cmake
yum install sudo ninja-build
./scripts/internal/manylinux-build-wheels.sh
```

On the macOS build system, we use the same build toolchain, toolchain path, and build
path as is used in the remote module GitHub Actions builds on the [macos-14 GitHub Action Runner].

- Install Xcode 15.0.1 from https://developer.apple.com/downloads/all/
- Unpack and move to /Applications/Xcode_15.0.1.app
``` bash
sudo xcode-select -s /Applications/Xcode_15.0.1.app
sudo xcodebuild -license
xcodebuild -version
# Xcode 15.0.1
# Build version 15A507
```

Build the wheels for macOS (both amd64 and ARM):
Build the wheels for macOS (both amd64 and ARM).

```bash
ssh misty
Expand Down Expand Up @@ -975,3 +994,4 @@ excellent packaging.
[ITK GitHub Releases]: https://github.com/InsightSoftwareConsortium/ITK/releases
[ITK data.kitware.com Releases]: https://data.kitware.com/#item/5b22a47f8d777f2e622564d8
[ITK GitHub Milestones]: https://github.com/InsightSoftwareConsortium/ITK/milestones
[macos-14 GitHub Action Runner]: https://github.com/actions/runner-images/blob/main/images/macos/macos-14-Readme.md

0 comments on commit 560183e

Please sign in to comment.