Skip to content

Commit

Permalink
[wip] Windows workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jnbrunet committed May 7, 2022
1 parent c1eaeb7 commit 1e61133
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ jobs:
- sofa_version: master
PYTHON_VERSION: 3.8
EIGEN_VERSION: 3.4
PYBIND11_VERSION: 2.4.3
env:
SOFA_VERSION: ${{ matrix.sofa_version }}
SOFA_ROOT: ${{ format('{0}/sofa', github.workspace) }}
PYBIND11_ROOT: ${{ format('{0}/pybind11', github.workspace) }}
PYBIND11_VERSION: ${{ matrix.PYBIND11_VERSION }}
QT_ROOT: ${{ format('{0}/qt', github.workspace) }}
PYTHON_VERSION: ${{ matrix.PYTHON_VERSION }}
BOOST_ROOT: ${{ format('{0}/boost', github.workspace) }}
Expand Down Expand Up @@ -65,7 +67,7 @@ jobs:
- name: Install pybind11
shell: bash
run: |
git clone --depth 1 -b v2.6 https://github.com/pybind/pybind11.git pybind11_src
git clone --depth 1 -b v$PYBIND11_VERSION https://github.com/pybind/pybind11.git pybind11_src
cmake -S pybind11_src -B pybind11_src/build -DPYBIND11_TEST=OFF -DCMAKE_BUILD_TYPE=Release -DPYBIND11_FINDPYTHON=ON
cmake --install pybind11_src/build --prefix $PYBIND11_ROOT
rm -rf pybind11_src
Expand Down Expand Up @@ -160,14 +162,15 @@ jobs:

test:
name: Building with ${{ matrix.sofa_version }}
needs: [build]
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
sofa_version: [ master ]
include:
- sofa_version: master
PYTHON_VERSION: 3.8
PYTHON_VERSION: 3.8.10
EIGEN_VERSION: 3.4
env:
SOFA_VERSION: ${{ matrix.sofa_version }}
Expand Down Expand Up @@ -207,7 +210,7 @@ jobs:
- name: Download caribou
uses: actions/download-artifact@v2
with:
name: caribou_${{ matrix.sofa_version }}
name: caribou_win64_${{ matrix.sofa_version }}
path: ${{ format('{0}/sofa/plugins/SofaCaribou', github.workspace) }}

- name: Caribou.unittests.Geometry
Expand Down
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ CMAKE_DEPENDENT_OPTION(CARIBOU_WITH_SOFA "Compile the SofaCaribou library" ON "S
if (CARIBOU_WITH_SOFA)
list(APPEND CMAKE_PREFIX_PATH ${SOFA_MODULE_DIR})
list(REMOVE_DUPLICATES CMAKE_PREFIX_PATH)
if (SOFA_VERSION VERSION_GREATER_EQUAL "22.06.00")
find_package(SOFA COMPONENTS SofaBaseUtils SofaBaseCollision SofaBaseVisual QUIET)
endif()
find_package(SofaPython3 QUIET) # We need to do this first to setup the exact python version required
endif()

Expand Down

0 comments on commit 1e61133

Please sign in to comment.