forked from blowekamp/itkExternalTemplate
-
Notifications
You must be signed in to change notification settings - Fork 17
ENH: Update cookie cutter for latest versions. #169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,11 +9,11 @@ on: | |
- main | ||
|
||
env: | ||
# v5.4.0 + additional patches on the release-5.4 branch | ||
itk-git-tag: "49413c3a9e8ecf0f912534e7c13f4c7bc3799d60" | ||
itk-wheel-tag: "v5.4.0" | ||
# v5.4.0 + fixes | ||
itk-python-package-tag: "830d14cc40199f438001ee493288139fb75bba92" | ||
# v6.0a02 | ||
itk-git-tag: "v6.0a02" | ||
itk-wheel-tag: "v6.0a02" | ||
# v6.0a02 + fixes | ||
itk-python-package-tag: "v6.0a02" | ||
itk-python-package-org: "InsightSoftwareConsortium" | ||
|
||
jobs: | ||
|
@@ -22,9 +22,10 @@ jobs: | |
strategy: | ||
max-parallel: 3 | ||
matrix: | ||
os: [ubuntu-22.04, windows-2022, macos-13, macos-14] | ||
# runners macos-13 is x86_64, macos-15 is arm64 by default | ||
os: [ubuntu-24.04, windows-2022, macos-13, macos-15] | ||
include: | ||
- os: ubuntu-22.04 | ||
- os: ubuntu-24.04 | ||
c-compiler: "gcc" | ||
cxx-compiler: "g++" | ||
cmake-build-type: "MinSizeRel" | ||
|
@@ -36,22 +37,24 @@ jobs: | |
c-compiler: "clang" | ||
cxx-compiler: "clang++" | ||
cmake-build-type: "MinSizeRel" | ||
- os: macos-14 | ||
deployment_target: '10.9' | ||
- os: macos-15 | ||
c-compiler: "clang" | ||
cxx-compiler: "clang++" | ||
cmake-build-type: "MinSizeRel" | ||
deployment_target: '13.0' | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/checkout@v4.2.2 | ||
|
||
- name: Free Disk Space (Ubuntu) | ||
if: matrix.os == 'ubuntu-22.04' | ||
if: matrix.os == 'ubuntu-24.04' | ||
uses: jlumbroso/[email protected] | ||
with: | ||
large-packages: false | ||
|
||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@v5 | ||
uses: actions/setup-python@v5.4.0 | ||
with: | ||
python-version: "3.11" | ||
|
||
|
@@ -62,17 +65,17 @@ jobs: | |
python -m pip install cookiecutter | ||
|
||
- name: Get specific version of CMake, Ninja | ||
uses: lukka/get-cmake@v3.29.0 | ||
uses: lukka/get-cmake@v3.31.5 | ||
|
||
- name: 'Specific XCode version' | ||
- name: 'Specific XCode version 14.3.1' | ||
if: matrix.os == 'macos-13' | ||
run: | | ||
sudo xcode-select -s "/Applications/Xcode_14.3.1.app" | ||
|
||
- name: 'Specific XCode version' | ||
if: matrix.os == 'macos-14' | ||
- name: 'Specific XCode version 16.2' | ||
if: matrix.os == 'macos-15' | ||
run: | | ||
sudo xcode-select -s "/Applications/Xcode_15.0.1.app" | ||
sudo xcode-select -s "/Applications/Xcode_16.2.app" | ||
|
||
- name: Download ITK | ||
run: | | ||
|
@@ -170,14 +173,14 @@ jobs: | |
ctest --output-on-failure -j 2 -V -S dashboard.cmake | ||
|
||
build-linux-python-packages: | ||
runs-on: ubuntu-22.04 | ||
runs-on: ubuntu-24.04 | ||
strategy: | ||
max-parallel: 2 | ||
matrix: | ||
python-version: ["39", "310", "311"] | ||
python-version: ["39", "310", "311","312","313"] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/checkout@v4.2.2 | ||
|
||
- name: 'Free up disk space' | ||
run: | | ||
|
@@ -195,12 +198,12 @@ jobs: | |
unzstd --version | ||
|
||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@v5 | ||
uses: actions/setup-python@v5.4.0 | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: Get specific version of CMake, Ninja | ||
uses: lukka/get-cmake@v3.29.0 | ||
uses: lukka/get-cmake@v3.31.5 | ||
|
||
- name: Evaluate template | ||
shell: bash | ||
|
@@ -227,7 +230,7 @@ jobs: | |
done | ||
|
||
- name: Publish Python package as GitHub Artifact | ||
uses: actions/upload-artifact@v4 | ||
uses: actions/upload-artifact@v4.6.0 | ||
with: | ||
name: LinuxWheel3${{ matrix.python-version }} | ||
path: Evaluated/ITKModuleTemplate/dist | ||
|
@@ -237,25 +240,25 @@ jobs: | |
strategy: | ||
max-parallel: 2 | ||
matrix: | ||
python3-minor-version: ["9", "10", "11"] | ||
python3-minor-version: ["9", "10", "11", "12", "13"] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/checkout@v4.2.2 | ||
|
||
- name: 'Specific XCode version' | ||
run: | | ||
sudo xcode-select -s "/Applications/Xcode_14.3.1.app" | ||
|
||
- name: Get specific version of CMake, Ninja | ||
uses: lukka/get-cmake@v3.29.0 | ||
uses: lukka/get-cmake@v3.31.5 | ||
|
||
- name: 'Fetch build script' | ||
run: | | ||
curl -L https://raw.githubusercontent.com/InsightSoftwareConsortium/ITKPythonPackage/${{ env.itk-python-package-tag }}/scripts/macpython-download-cache-and-build-module-wheels.sh -O | ||
chmod u+x macpython-download-cache-and-build-module-wheels.sh | ||
|
||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@v5 | ||
uses: actions/setup-python@v5.4.0 | ||
with: | ||
python-version: "3.11" | ||
|
||
|
@@ -272,11 +275,12 @@ jobs: | |
export ITK_PACKAGE_VERSION=${{ env.itk-wheel-tag }} | ||
export ITKPYTHONPACKAGE_TAG=${{ env.itk-python-package-tag }} | ||
export ITKPYTHONPACKAGE_ORG=${{ env.itk-python-package-org }} | ||
export MACOSX_DEPLOYMENT_TARGET=10.9 | ||
# For Xcode 16.2, the recommended "MACOSX_DEPLOYMENT_TARGET" is "13.0"; this means your application should be built to run on macOS Ventura (version 13.0) or later. | ||
export MACOSX_DEPLOYMENT_TARGET=${{ matrix.deployment_target || '13.0' }} | ||
../../macpython-download-cache-and-build-module-wheels.sh "3.${{ matrix.python3-minor-version }}" | ||
|
||
- name: Publish Python package as GitHub Artifact | ||
uses: actions/upload-artifact@v4 | ||
uses: actions/upload-artifact@v4.6.0 | ||
with: | ||
name: MacOSWheel3${{ matrix.python3-minor-version }} | ||
path: Evaluated/ITKModuleTemplate/dist | ||
|
@@ -289,23 +293,23 @@ jobs: | |
python-version-minor: ["9", "10", "11"] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/checkout@v4.2.2 | ||
|
||
- name: 'Install Python' | ||
run: | | ||
$pythonArch = "64" | ||
$pythonVersion = "3.${{ matrix.python-version-minor }}" | ||
iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/scikit-build/scikit-ci-addons/master/windows/install-python.ps1')) | ||
|
||
- uses: actions/setup-python@v5 | ||
- uses: actions/setup-python@v5.4.0 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Get specific version of CMake, Ninja | ||
uses: lukka/get-cmake@v3.29.0 | ||
uses: lukka/get-cmake@v3.31.5 | ||
|
||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@v5 | ||
- name: Set up Python 3.11/ | ||
uses: actions/setup-python@v5.4.0 | ||
with: | ||
python-version: "3.11" | ||
|
||
|
@@ -347,7 +351,7 @@ jobs: | |
C:\Python3${{ matrix.python-version-minor }}-x64\python.exe C:\P\IPP\scripts\windows_build_module_wheels.py --py-envs "3${{ matrix.python-version-minor }}-x64" | ||
|
||
- name: Publish Python package as GitHub Artifact | ||
uses: actions/upload-artifact@v4 | ||
uses: actions/upload-artifact@v4.6.0 | ||
with: | ||
name: WindowsWheel3.${{ matrix.python-version-minor }} | ||
path: Evaluated/ITKModuleTemplate/dist |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.