Skip to content

Commit

Permalink
ci: Fix the type and vtk version
Browse files Browse the repository at this point in the history
  • Loading branch information
sanguinariojoe committed Aug 7, 2024
1 parent 7882fc3 commit 6c4a4cb
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/python-wheels-emulated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,6 @@ on:

permissions: write-all

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
VTK_VERSION_MAJOR: 9
VTK_VERSION_MINOR: 2
VTK_VERSION_PATCH: 6

jobs:
build_wheels:
name: Build Python wheels
Expand All @@ -34,9 +27,9 @@ jobs:
CIBW_SKIP: "*-win32*"
CIBW_ARCHS: ${{inputs.arch}}
CIBW_BEFORE_ALL: >
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/install -DEXTERNAL_EIGEN:BOOL=OFF -DPYTHON_WRAPPER:BOOL=OFF -DFORTRAN_WRAPPER:BOOL=OFF -DRUST_WRAPPER:BOOL=OFF -DUSE_VTK=ON -DVTK_DIR=${{github.workspace}}/vtk/lib/cmake/vtk-${{env.VTK_VERSION_MAJOR}}.${{env.VTK_VERSION_MINOR}}/ -DMOORDYN_PACKAGE_IGNORE_VTK_DEPENDENCY=ON -DBUILD_TESTING=OFF &&
cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} &&
cmake --install ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/install -DEXTERNAL_EIGEN:BOOL=OFF -DPYTHON_WRAPPER:BOOL=OFF -DFORTRAN_WRAPPER:BOOL=OFF -DRUST_WRAPPER:BOOL=OFF -DUSE_VTK=ON -DVTK_DIR=${{github.workspace}}/vtk/lib/cmake/vtk-9.2/ -DMOORDYN_PACKAGE_IGNORE_VTK_DEPENDENCY=ON -DBUILD_TESTING=OFF &&
cmake --build ${{github.workspace}}/build --config Release &&
cmake --install ${{github.workspace}}/build --config Release
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -70,7 +63,7 @@ jobs:
- name: download pre-built VTK static library
uses: suisei-cn/[email protected]
with:
url: https://github.com/sanguinariojoe/vtk-builds/releases/download/VTK-${{env.VTK_VERSION_MAJOR}}.${{env.VTK_VERSION_MINOR}}.${{env.VTK_VERSION_PATCH}}-static/$VTK_NAME
url: https://github.com/sanguinariojoe/vtk-builds/releases/download/VTK-9.2.6-static/$VTK_NAME
target: ${{github.workspace}}/

- name: Create folders
Expand Down

0 comments on commit 6c4a4cb

Please sign in to comment.