Skip to content

Commit

Permalink
ENH: Remove OpenCL packages from CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dzenanz committed Apr 26, 2022
1 parent 192e607 commit 188551d
Showing 1 changed file with 0 additions and 92 deletions.
92 changes: 0 additions & 92 deletions .github/workflows/build-test-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,71 +253,6 @@ jobs:
name: WindowsWheel3.${{ matrix.python-version-minor }}
path: ../../im/dist

build-linux-opencl-python-packages:
runs-on: ubuntu-20.04
strategy:
max-parallel: 2
matrix:
python-version: [37, 38, 39, 310]
include:
- itk-python-git-tag: "v5.3rc03"

steps:
- uses: actions/checkout@v2

- name: 'Free up disk space'
run: |
# Workaround for https://github.com/actions/virtual-environments/issues/709
df -h
sudo apt-get clean
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
df -h
- name: 'Build 🐍 Python 📦 package'
run: |
export ITK_PACKAGE_VERSION=${{ matrix.itk-python-git-tag }}
./wrapping/dockcross-manylinux-download-cache.sh
./wrapping/dockcross-manylinux-build-module-wheels-opencl.sh cp${{ matrix.python-version }}
- name: Publish Python package as GitHub Artifact
uses: actions/upload-artifact@v1
with:
name: LinuxOpenCLWheel${{ matrix.python-version }}
path: dist

build-macos-opencl-python-packages:
runs-on: macos-10.15
strategy:
max-parallel: 2
matrix:
include:
- itk-python-git-tag: "v5.3rc03"

steps:
- uses: actions/checkout@v2

- 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
chmod u+x macpython-download-cache-and-build-module-wheels.sh
- name: 'Build 🐍 Python 📦 package'
run: |
export ITK_PACKAGE_VERSION=${{ matrix.itk-python-git-tag }}
export MACOSX_DEPLOYMENT_TARGET=10.9
export ELASTIX_USE_OPENCL=1
./macpython-download-cache-and-build-module-wheels.sh
- name: Publish Python package as GitHub Artifact
uses: actions/upload-artifact@v1
with:
name: MacOSOpenCLWheels
path: dist

publish-python-packages-to-pypi:
needs:
- build-linux-python-packages
Expand Down Expand Up @@ -345,30 +280,3 @@ jobs:
with:
user: __token__
password: ${{ secrets.pypi_password }}

publish-opencl-python-packages-to-pypi:
needs:
- build-linux-opencl-python-packages
- build-macos-opencl-python-packages
runs-on: ubuntu-20.04

steps:
- name: Download Python Packages
uses: actions/download-artifact@v2

- name: Prepare packages for upload
run: |
ls -R
for d in */; do
mv ${d}/*.whl .
done
mkdir dist
mv itk_elastix_opencl-*.whl dist/
ls dist
- name: Publish 🐍 Python 📦 package to PyPI
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.opencl_pypi_password }}

0 comments on commit 188551d

Please sign in to comment.