Skip to content

Commit

Permalink
fix(python): Avoid using brew on MacOS-13 statically linking VTK
Browse files Browse the repository at this point in the history
  • Loading branch information
sanguinariojoe committed Aug 19, 2024
1 parent 63d8b72 commit a521444
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/python-wheels-emulated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ jobs:
rm -rf docs extern source tests
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: "delvewheel repair --add-path install/bin -w {dest_dir} {wheel}"
CIBW_BEFORE_ALL_MACOS: >
cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=install -DEXTERNAL_EIGEN:BOOL=OFF -DPYTHON_WRAPPER:BOOL=OFF -DFORTRAN_WRAPPER:BOOL=OFF -DRUST_WRAPPER:BOOL=OFF -DUSE_VTK=ON -DMOORDYN_PACKAGE_IGNORE_VTK_DEPENDENCY=OFF -DBUILD_TESTING=OFF -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 &&
echo "Considering vtk-macOS_`uname -m`.tar.gz..." &&
mkdir -p vtk &&
tar -xvzf vtk-macOS_`uname -m`.tar.gz -C vtk/ &&
cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=install -DEXTERNAL_EIGEN:BOOL=OFF -DPYTHON_WRAPPER:BOOL=OFF -DFORTRAN_WRAPPER:BOOL=OFF -DRUST_WRAPPER:BOOL=OFF -DUSE_VTK=ON -DVTK_DIR=vtk/lib/cmake/vtk-${{inputs.vtk_major}}.${{inputs.vtk_minor}} -DMOORDYN_PACKAGE_IGNORE_VTK_DEPENDENCY=ON -DBUILD_TESTING=OFF -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 &&
cmake --build build --config Release &&
cmake --install build --config Release &&
rm -rf docs extern source tests
Expand Down Expand Up @@ -99,9 +102,11 @@ jobs:
target: ${{github.workspace}}/
if: runner.os == 'Windows'

- name: Install VTK (MacOS)
run: |
brew install vtk
- name: download pre-built VTK static library (MacOS)
uses: suisei-cn/actions-download-file@v1.6.0
with:
url: https://github.com/sanguinariojoe/vtk-builds/releases/download/VTK-${{inputs.vtk_major}}.${{inputs.vtk_minor}}.${{inputs.vtk_patch}}-static/vtk-macOS_${{inputs.arch}}.tar.gz
target: ${{github.workspace}}/
if: runner.os == 'MacOS'

- name: Create folders
Expand Down

0 comments on commit a521444

Please sign in to comment.