Workflow file for this run
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
name: Build with vcpkg on Windows | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Cache vcpkg dependencies | |
uses: actions/cache@v2 | |
with: | |
path: vcpkg_installed | |
key: vcpkg-${{ runner.os }}-${{ hashFiles('vcpkg/vcpkg-export.txt') }} | |
- name: Install vcpkg | |
run: | | |
git clone https://github.com/microsoft/vcpkg.git | |
cd vcpkg | |
.\bootstrap-vcpkg.bat | |
- name: Install vcpkg dependencies | |
run: | | |
cd vcpkg | |
.\vcpkg install cgal | |
- name: Export vcpkg installed packages | |
run: | | |
cd vcpkg | |
.\vcpkg list > vcpkg-export.txt | |
- name: Set up vcpkg environment | |
run: | | |
echo "::add-path::${RUNNER_WORKSPACE}\\vcpkg" | |
- name: Build project with vcpkg | |
run: | | |
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DSFCGAL_BUILD_TESTS=ON -DCMAKE_TOOLCHAIN_FILE=${RUNNER_WORKSPACE}\\vcpkg\\scripts\\buildsystems\\vcpkg.cmake | |
cmake --build build | |
ctest -V --output-on-failure --test-dir build | |