diff --git a/.github/workflows/python-wheels-emulated.yml b/.github/workflows/python-wheels-emulated.yml index 3520e0bb..a5ff12af 100644 --- a/.github/workflows/python-wheels-emulated.yml +++ b/.github/workflows/python-wheels-emulated.yml @@ -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 @@ -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