mirror of
https://github.com/jhasse/poly2tri.git
synced 2025-08-03 22:05:39 +02:00
Add CMake files for the unit tests
- Building unit tests is optional, disabled by default to prevent the library clients from pulling the dependency on boost - Add the unit tests to the Github Actions. - Use boost::filesystem to manipulate paths for better portability
This commit is contained in:
8
.github/workflows/linux.yml
vendored
8
.github/workflows/linux.yml
vendored
@@ -13,12 +13,13 @@ jobs:
|
||||
image: fedora:32
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Install dependencies
|
||||
run: dnf install -yq cmake ninja-build gcc-c++ clang-tools-extra python3-PyYAML
|
||||
run: dnf install -yq cmake ninja-build gcc-c++ clang-tools-extra python3-PyYAML boost-devel
|
||||
|
||||
- name: Build with GCC
|
||||
run: |
|
||||
cmake -Bbuild -GNinja
|
||||
cmake -Bbuild -GNinja -DP2T_BUILD_TESTS=ON
|
||||
cmake --build build
|
||||
|
||||
- name: Build with Clang
|
||||
@@ -28,3 +29,6 @@ jobs:
|
||||
|
||||
- name: Lint with clang-tidy
|
||||
run: python3 /usr/share/clang/run-clang-tidy.py -header-filter=poly2tri -p=build-clang
|
||||
|
||||
- name: Unit tests
|
||||
run: cd build && ctest --output-on-failure
|
||||
|
Reference in New Issue
Block a user