Skip to content

Commit

Permalink
Trying to eliminate deprecation warnings and get Windows builds of VT…
Browse files Browse the repository at this point in the history
…K to work
  • Loading branch information
jmwright committed Jun 14, 2024
1 parent f802e48 commit f75c550
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build-vtk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

steps:
- name: Checkout project
uses: actions/checkout@v2
uses: actions/checkout@v4

- uses: actions/setup-python@v4
with:
Expand All @@ -44,7 +44,11 @@ jobs:
run: |
pip3 install --upgrade setuptools
mkdir -p ./vtk/build
wget https://www.vtk.org/files/release/9.2/VTK-9.2.6.tar.gz # Update this for newer releases of VTK
if [ "$RUNNER_OS" == "Windows"]; then
bitsadmin /addfile job1 https://www.vtk.org/files/release/9.2/VTK-9.2.6.tar.gz "${PWD}\\VTK-9.2.6.tar.gz" # Update this for newer releases of VTK
else
wget https://www.vtk.org/files/release/9.2/VTK-9.2.6.tar.gz # Update this for newer releases of VTK
fi
tar -zxf VTK-9.2.6.tar.gz --directory ./vtk/
cd ./vtk/build
cmake -GNinja -DVTK_WHEEL_BUILD=ON -DVTK_WRAP_PYTHON=ON -DCMAKE_BUILD_TYPE=Release ../VTK-9.2.6
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
# ls -ld /tmp/vtk-wheels/*-cp${{ matrix.python-version }}/vtk-*.whl

- name: Checkout project
uses: actions/checkout@v2
uses: actions/checkout@v4

# See https://cibuildwheel.readthedocs.io/en/stable/
# Not usable for now, because cadquery libraries require glibc 2.31,
Expand Down

0 comments on commit f75c550

Please sign in to comment.