Skip to content

Commit

Permalink
COMP: Update GitHub Actions from ITKModuleTemplate
Browse files Browse the repository at this point in the history
  • Loading branch information
mseng10 committed Jan 11, 2021
1 parent 811e816 commit efe7906
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 9 deletions.
29 changes: 21 additions & 8 deletions .github/workflows/build-test-package.yml
Expand Up @@ -13,17 +13,17 @@ jobs:
- os: ubuntu-18.04
c-compiler: "gcc"
cxx-compiler: "g++"
itk-git-tag: "v5.1.1"
itk-git-tag: "abd38d5a0040b9a8fbb0ad3127089dbb72a93342"
cmake-build-type: "MinSizeRel"
- os: windows-2019
c-compiler: "cl.exe"
cxx-compiler: "cl.exe"
itk-git-tag: "v5.1.1"
itk-git-tag: "abd38d5a0040b9a8fbb0ad3127089dbb72a93342"
cmake-build-type: "Release"
- os: macos-10.15
c-compiler: "clang"
cxx-compiler: "clang++"
itk-git-tag: "v5.1.1"
itk-git-tag: "abd38d5a0040b9a8fbb0ad3127089dbb72a93342"
cmake-build-type: "MinSizeRel"

steps:
Expand All @@ -39,6 +39,9 @@ jobs:
python -m pip install --upgrade pip
python -m pip install ninja
- name: Get specific version of CMake, Ninja
uses: lukka/get-cmake@v3.18.3

- name: Download ITK
run: |
cd ..
Expand Down Expand Up @@ -133,7 +136,7 @@ jobs:
matrix:
python-version: [36, 37, 38, 39]
include:
- itk-python-git-tag: "v5.1.1.post1"
- itk-python-git-tag: "v5.2rc01"

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -169,11 +172,18 @@ jobs:
max-parallel: 2
matrix:
include:
- itk-python-git-tag: "v5.1.1.post1"
- itk-python-git-tag: "v5.2rc01"

steps:
- uses: actions/checkout@v2

- name: 'Specific XCode version'
run: |
sudo xcode-select -s "/Applications/Xcode_11.7.app"
- name: Get specific version of CMake, Ninja
uses: lukka/get-cmake@v3.18.3

- name: 'Fetch build script'
run: |
curl -L https://raw.githubusercontent.com/InsightSoftwareConsortium/ITKPythonPackage/master/scripts/macpython-download-cache-and-build-module-wheels.sh -O
Expand All @@ -198,9 +208,12 @@ jobs:
matrix:
python-version-minor: [6, 7, 8, 9]
include:
- itk-python-git-tag: "v5.1.1.post1"
- itk-python-git-tag: "v5.2rc01"

steps:
- name: Get specific version of CMake, Ninja
uses: lukka/get-cmake@v3.18.3

- uses: actions/checkout@v2
with:
path: "im"
Expand All @@ -215,7 +228,7 @@ jobs:
shell: bash
run: |
mv im ../../
cd ../../
cd ../../im
curl -L "https://github.com/InsightSoftwareConsortium/ITKPythonBuilds/releases/download/${{ matrix.itk-python-git-tag }}/ITKPythonBuilds-windows.zip" -o "ITKPythonBuilds-windows.zip"
7z x ITKPythonBuilds-windows.zip -o/c/P -aoa -r
curl -L "https://data.kitware.com/api/v1/file/5c0ad59d8d777f2179dd3e9c/download" -o "doxygen-1.8.11.windows.bin.zip"
Expand All @@ -236,7 +249,7 @@ jobs:
- name: Publish Python package as GitHub Artifact
uses: actions/upload-artifact@v1
with:
name: WindowWheel3.${{ matrix.python-version-minor }}
name: WindowsWheel3.${{ matrix.python-version-minor }}
path: ../../im/dist

publish-python-packages-to-pypi:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -47,6 +47,6 @@
keywords='ITK InsightToolkit MGH Slicer',
url=r'https://itk.org/',
install_requires=[
r'itk>=5.1.1'
r'itk>=5.2rc1'
]
)

0 comments on commit efe7906

Please sign in to comment.