Skip to content

Commit

Permalink
finalize github actions (+9 squashed commit)
Browse files Browse the repository at this point in the history
  • Loading branch information
fredroy committed Dec 28, 2021
1 parent 34bd1c9 commit 943a374
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,15 @@ jobs:
elif [[ "$RUNNER_OS" == "macOS" ]]; then
brew install cgal
elif [[ "$RUNNER_OS" == "Windows" ]]; then
vcpkg --triplet x64-windows install cgal
curl --output "${{ runner.temp }}/cgal_lib.zip" -L \
"https://github.com/CGAL/cgal/releases/download/v5.3.1/CGAL-5.3.1-library.zip"
curl --output "${{ runner.temp }}/cgal_dep.zip" -L \
"https://github.com/CGAL/cgal/releases/download/v5.3.1/CGAL-5.3.1-win64-auxiliary-libraries-gmp-mpfr.zip"
unzip -qq "${{ runner.temp }}/cgal_lib.zip" -d "${{ runner.temp }}/cgal_dir"
unzip -qq "${{ runner.temp }}/cgal_dep.zip" -d "${{ runner.temp }}/cgal_dir"
echo "CGAL_ROOT=${{ runner.temp }}/cgal_dir" | tee -a $GITHUB_ENV
echo "GMP_ROOT=${{ runner.temp }}/cgal_dir/auxiliary/gmp" | tee -a $GITHUB_ENV
echo "MPFR_LIBRARIES=${{ runner.temp }}/cgal_dir/auxiliary/gmp/lib/libmpfr-4.lib" | tee -a $GITHUB_ENV
fi
- name: Build and install
Expand All @@ -51,7 +59,7 @@ jobs:
-DCMAKE_PREFIX_PATH="$SOFA_ROOT/lib/cmake" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="$WORKSPACE_INSTALL_PATH" \
-DCMAKE_TOOLCHAIN_FILE=C:\src\vcpkg\scripts\buildsystems\vcpkg.cmake
-DMPFR_LIBRARIES="$MPFR_LIBRARIES" \
../src \
&& ninja -v install"
else
Expand Down

0 comments on commit 943a374

Please sign in to comment.