-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (34 loc) · 1.1 KB
/
vcpkg.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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