-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP] init vcpkg. Disable alphaShapes for now (cf CGAL/cgal#7667)
- Loading branch information
1 parent
ae0a12d
commit 66c2f06
Showing
6 changed files
with
69 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Build with vcpkg on Windows | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- '*' | ||
pull_request: | ||
branches: | ||
- '*' | ||
|
||
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 | ||
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 |
---|---|---|
|
@@ -43,3 +43,6 @@ test/unit/unit-test-SFCGAL | |
*/.DS_Store | ||
|
||
build | ||
/.vs | ||
/out/install/x64-Debug/include/SFCGAL | ||
/CMakeSettings.json |
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
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