Skip to content

Commit

Permalink
Install Catch2 from source in Windows CI
Browse files Browse the repository at this point in the history
  • Loading branch information
GiulioRomualdi authored Nov 22, 2022
1 parent 01dd947 commit 5a9972b
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,6 @@ jobs:
cd C:/robotology/vcpkg
./bootstrap-vcpkg.bat
# Install Catch2
cd C:/robotology/vcpkg
./vcpkg.exe --overlay-ports=C:/robotology/robotology-vcpkg-ports install catch2:x64-windows
# Install tomlplusplus
./vcpkg.exe --overlay-ports=C:/robotology/robotology-vcpkg-ports install tomlplusplus:x64-windows
Expand Down Expand Up @@ -453,6 +449,21 @@ jobs:
cmake --build . --config ${{ matrix.build_type }} --target install
- name: Catch2 Dependency [Windows]
if: matrix.os == 'windows-2019'
shell: bash
run: |
# Catch2
git clone -b ${Catch2_TAG} https://github.com/catchorg/Catch2.git
cd Catch2
mkdir -p build
cd build
cmake -A x64 -DCMAKE_TOOLCHAIN_FILE=${VCPKG_INSTALLATION_ROOT}/scripts/buildsystems/vcpkg.cmake \
-DCMAKE_PREFIX_PATH=${GITHUB_WORKSPACE}/install/deps \
-DCMAKE_INSTALL_PREFIX=${GITHUB_WORKSPACE}/install/deps \
-DBUILD_TESTING=OFF ..
cmake --build . --config ${{ matrix.build_type }} --target INSTALL
- name: Source-based Dependencies [Ubuntu]
if: steps.cache-source-deps.outputs.cache-hit != 'true' && startsWith(matrix.os, 'ubuntu')
shell: bash
Expand Down

0 comments on commit 5a9972b

Please sign in to comment.