-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit f9ca1ae Author: Jean-Nicolas Brunet <jnbrunet2000@gmail.com> Date: Tue Aug 8 09:17:42 2023 -0400 Windows compatibility commit 385403b Author: Jean-Nicolas Brunet <jnbrunet2000@gmail.com> Date: Tue Aug 8 08:55:55 2023 -0400 Windows compatibility commit 6339704 Author: Jean-Nicolas Brunet <jnbrunet2000@gmail.com> Date: Mon Aug 7 21:50:23 2023 -0400 Windows compatibility commit a1ab1d9 Author: Jean-Nicolas Brunet <jnbrunet2000@gmail.com> Date: Mon Aug 7 20:02:54 2023 -0400 Windows compatibility commit 34dbe28 Author: Jean-Nicolas Brunet <jnbrunet2000@gmail.com> Date: Thu Aug 3 22:15:26 2023 -0400 Windows compatibility commit 8984c38 Author: Jean-Nicolas Brunet <jnbrunet2000@gmail.com> Date: Thu Aug 3 22:02:25 2023 -0400 Windows compatibility commit 90ce4ce Merge: 15f9b91 2aa665c Author: Jean-Nicolas Brunet <jnbrunet2000@gmail.com> Date: Tue Jun 27 19:41:58 2023 -0400 Merge remote-tracking branch 'origin/master' into windows_workflow # Conflicts: # .github/workflows/macos.yml # .github/workflows/ubuntu.yml # src/SofaCaribou/Algebra/EigenMatrix.h # src/SofaCaribou/Algebra/EigenVector.h # unittest/SofaCaribou/Mass/test_cariboumass.cpp commit 15f9b91 Author: Jean-Nicolas Brunet <jnbrunet2000@gmail.com> Date: Wed Jun 22 21:11:33 2022 -0400 temp commit 6d9d0b8 Author: Jean-Nicolas Brunet <jnbrunet2000@gmail.com> Date: Fri May 27 22:07:23 2022 -0400 [wip] Windows workflow commit 01ee3db Author: Jean-Nicolas Brunet <jnbrunet2000@gmail.com> Date: Fri May 27 21:30:24 2022 -0400 [wip] Windows workflow commit c31d85b Author: Jean-Nicolas Brunet <jnbrunet2000@gmail.com> Date: Sat May 7 14:27:22 2022 -0400 [wip] Windows workflow commit 5fbb704 Author: Jean-Nicolas Brunet <jnbrunet2000@gmail.com> Date: Sat May 7 13:47:16 2022 -0400 [wip] Windows workflow commit 1e61133 Author: Jean-Nicolas Brunet <jnbrunet2000@gmail.com> Date: Fri May 6 20:48:42 2022 -0400 [wip] Windows workflow commit c1eaeb7 Author: Jean-Nicolas Brunet <jnbrunet2000@gmail.com> Date: Thu May 5 11:41:52 2022 -0400 [wip] Windows workflow commit 6957494 Author: Jean-Nicolas Brunet <jnbrunet2000@gmail.com> Date: Thu Mar 31 10:22:13 2022 -0400 [wip] Windows workflow commit 57deb1d Author: Jean-Nicolas Brunet <jnbrunet2000@gmail.com> Date: Sat Sep 18 09:58:16 2021 -0400 [wip] Windows workflow
- Loading branch information
Showing
9 changed files
with
292 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,251 @@ | ||
name: Windows | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
schedule: | ||
# Runs every day at 23:15 | ||
- cron: '15 23 * * *' | ||
|
||
jobs: | ||
build: | ||
name: Building with ${{ matrix.sofa_version }} | ||
runs-on: windows-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
sofa_version: [ master ] | ||
include: | ||
- sofa_version: master | ||
PYTHON_VERSION: 3.8 | ||
EIGEN_VERSION: 3.4 | ||
PYBIND11_VERSION: 2.4.3 | ||
# - sofa_version: v21.12.00 | ||
# PYTHON_VERSION: 3.7 | ||
# EIGEN_VERSION: 3.3.7 | ||
# 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) }} | ||
EIGEN_ROOT: ${{ format('{0}/eigen', github.workspace) }} | ||
EIGEN_VERSION: ${{ matrix.EIGEN_VERSION }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- run: | | ||
git config --global user.email "caribou@github.com" | ||
git config --global user.name "Caribou Github" | ||
git fetch origin | ||
git merge origin/master | ||
# Python | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.PYTHON_VERSION }} | ||
|
||
# Eigen3 | ||
- name: cache eigen | ||
uses: actions/cache@v2 | ||
id: cache-eigen | ||
with: | ||
path: ${{ github.workspace }}/eigen | ||
key: eigen-${{ matrix.EIGEN_VERSION }}-windows | ||
- name: Install Eigen | ||
if: steps.cache-eigen.outputs.cache-hit != 'true' | ||
shell: bash | ||
run: | | ||
git clone --depth 1 -b $EIGEN_VERSION https://gitlab.com/libeigen/eigen.git eigen_src | ||
cmake -S eigen_src -B eigen_src/build -DCMAKE_BUILD_TYPE=Release -DEIGEN_BUILD_DOC=OFF -DCMAKE_INSTALL_PREFIX="$EIGEN_ROOT" | ||
cmake --build eigen_src/build --target install | ||
# PYBIND11 | ||
- name: Install pybind11 | ||
shell: bash | ||
run: | | ||
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 | ||
# BOOST | ||
- name: Cache Boost | ||
id: cache-Boost | ||
uses: actions/cache@v1 | ||
with: | ||
path: ${{ format('{0}/boost', github.workspace) }} | ||
key: boost-1.69.0-windows | ||
|
||
- name: Install Boost | ||
if: steps.cache-Boost.outputs.cache-hit != 'true' | ||
run: | | ||
$BOOST_MAJOR = 1 | ||
$BOOST_MINOR = 69 | ||
$BOOST_PATCH = 0 | ||
Invoke-WebRequest "https://boost.teeks99.com/bin/$($BOOST_MAJOR).$($BOOST_MINOR).$($BOOST_PATCH)/boost_$($BOOST_MAJOR)_$($BOOST_MINOR)_$($BOOST_PATCH)-msvc-14.1-64.exe" -OutFile boostinstaller.exe | ||
./boostinstaller.exe /NORESTART /VERYSILENT /DIR="$($BOOST_ROOT)" | Out-Null | ||
rm -Force boostinstaller.exe | ||
# SOFA | ||
- name: Download SOFA Release | ||
shell: bash | ||
run: | | ||
if [ "$SOFA_VERSION" = "master" ]; then | ||
curl --output sofa.zip -L "https://ci.inria.fr/sofa-ci-dev/job/nightly-generate-binaries/CI_BRANCH=master,CI_SCOPE=standard/lastSuccessfulBuild/artifact/Windows/*zip*/Windows.zip" | ||
unzip sofa.zip -d temp | ||
mv temp/Windows/`ls temp/Windows` sofa.zip | ||
rm -rf temp | ||
unzip sofa.zip -d temp | ||
mv temp/`ls temp` $SOFA_ROOT | ||
rm -rf temp | ||
else | ||
curl --output sofa.zip -L "https://github.com/sofa-framework/sofa/releases/download/$SOFA_VERSION/SOFA_"$SOFA_VERSION"_Win64.zip" | ||
unzip sofa.zip -d temp | ||
mv temp/`ls temp` $SOFA_ROOT | ||
fi | ||
# Patch SP3 absolute path | ||
sed -i 's/C:\/pybind11\/[0-9].[0-9].[0-9]\/install\/include;//' $SOFA_ROOT/plugins/SofaPython3/lib/cmake/SofaPython3/PluginTargets.cmake | ||
# SOFA DEPENDENCY PACK | ||
- name: Download SOFA Dependency pack | ||
shell: bash | ||
run: | | ||
curl --output sofa_dependency.zip -L "https://www.sofa-framework.org/download/WinDepPack/VS-2017/latest" | ||
unzip sofa_dependency.zip -d temp | ||
mv temp/`ls temp` $SOFA_ROOT/windows_dependency | ||
rm -rf temp | ||
# QT | ||
- name: Cache Qt | ||
id: cache-qt | ||
uses: actions/cache@v1 | ||
with: | ||
path: ${{ format('{0}/qt', github.workspace) }} | ||
key: qt-5.12.6-windows | ||
|
||
- name: Install Qt | ||
uses: jurplel/install-qt-action@v2 | ||
with: | ||
version: '5.12.6' | ||
dir: ${{ format('{0}/qt', github.workspace) }} | ||
cached: ${{ steps.cache-qt.outputs.cache-hit }} | ||
modules: 'qtcharts qtwebengine' | ||
|
||
# CARIBOU | ||
- name: Build caribou | ||
shell: bash | ||
run: | ||
cmake -DCMAKE_BUILD_TYPE=Release | ||
-Dpybind11_DIR=$PYBIND11_ROOT | ||
-DEigen3_ROOT=$EIGEN_ROOT | ||
-DCMAKE_INCLUDE_PATH=$SOFA_ROOT/windows_dependency/include | ||
-DCMAKE_LIBRARY_PATH=$SOFA_ROOT/windows_dependency/lib/win64 | ||
-DQt5_ROOT=$QT_ROOT\5.12.5\msvc2017_64 | ||
-DCMAKE_INSTALL_PREFIX=$SOFA_ROOT/plugins/SofaCaribou | ||
-DCARIBOU_WITH_PYTHON_3=OFF | ||
. | ||
&& cmake --build . --config Release | ||
&& cmake --install . | ||
|
||
# ZIP | ||
- name: Zip production | ||
run: Compress-Archive -LiteralPath "$($env:SOFA_ROOT)/plugins/SofaCaribou" -DestinationPath SofaCaribou.zip | ||
|
||
# ARCHIVE | ||
- name: Archive production | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: caribou_win64_${{ matrix.sofa_version }} | ||
path: SofaCaribou.zip | ||
|
||
test: | ||
name: Testing 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.10 | ||
# - sofa_version: v21.12.00 | ||
# PYTHON_VERSION: 3.7 | ||
env: | ||
SOFA_VERSION: ${{ matrix.sofa_version }} | ||
SOFA_ROOT: ${{ format('{0}\sofa', github.workspace) }} | ||
CARIBOU_ROOT: ${{ format('{0}\sofa\plugins\SofaCaribou', github.workspace) }} | ||
|
||
steps: | ||
# Python | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.PYTHON_VERSION }} | ||
|
||
# PATH | ||
- run: echo "${$env:SOFA_ROOT}/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | ||
|
||
# SOFA | ||
- name: Download SOFA Release | ||
shell: bash | ||
run: | | ||
if [ "$SOFA_VERSION" = "master" ]; then | ||
curl --output sofa.zip -L "https://ci.inria.fr/sofa-ci-dev/job/nightly-generate-binaries/CI_BRANCH=master,CI_SCOPE=standard/lastSuccessfulBuild/artifact/Windows/*zip*/Windows.zip" | ||
unzip sofa.zip -d temp | ||
mv temp/Windows/`ls temp/Windows` sofa.zip | ||
rm -rf temp | ||
unzip sofa.zip -d temp | ||
mv temp/`ls temp` $SOFA_ROOT | ||
rm -rf temp | ||
else | ||
curl --output sofa.zip -L "https://github.com/sofa-framework/sofa/releases/download/$SOFA_VERSION/SOFA_"$SOFA_VERSION"_Win64.zip" | ||
unzip sofa.zip -d temp | ||
mv temp/`ls temp` $SOFA_ROOT | ||
fi | ||
# CARIBOU | ||
- name: Download caribou | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: caribou_win64_${{ matrix.sofa_version }} | ||
- name: Install caribou | ||
run: Expand-Archive -Path SofaCaribou.zip -DestinationPath "${$env:SOFA_ROOT}\plugins" | ||
|
||
- name: Caribou.unittests.Geometry | ||
if: ${{ always() }} | ||
shell: bash | ||
run: | | ||
export PATH="$SOFA_ROOT/bin:$PATH" | ||
$CARIBOU_ROOT/bin/Caribou.unittests.Geometry.exe | ||
- name: Caribou.unittests.Topology | ||
if: ${{ always() }} | ||
shell: bash | ||
run: | | ||
export PATH="$SOFA_ROOT/bin:$PATH" | ||
$CARIBOU_ROOT/bin/Caribou.unittests.Topology.exe | ||
- name: Caribou.unittests.Mechanics | ||
if: ${{ always() }} | ||
shell: bash | ||
run: | | ||
export PATH="$SOFA_ROOT/bin:$PATH" | ||
$CARIBOU_ROOT/bin/Caribou.unittests.Mechanics.exe | ||
- name: Caribou.unittests.SofaCaribou | ||
if: ${{ always() }} | ||
shell: bash | ||
run: | | ||
export PATH="$SOFA_ROOT/bin:$PATH" | ||
$CARIBOU_ROOT/bin/Caribou.unittests.SofaCaribou.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.