Skip to content

Commit ae07db7

Browse files
committed
Fix running tests with cmake
1 parent 4561522 commit ae07db7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,15 @@ jobs:
6868
run: |
6969
"${GITHUB_WORKSPACE}/bin/bazel" test --config=clang --config=cpp20 //...
7070
71-
- name: Build & Test (CMake)
71+
- name: Build (CMake)
7272
run: |
7373
cmake -S . -B build -G Ninja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
7474
cmake --build build
7575
ctest --test-dir build --output-on-failure
76+
77+
- name: Build w/ Tests (CMake)
78+
run: |
79+
rm -rf build
80+
cmake -S . -B build -G Ninja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DPIXELMATCH_BUILD_TESTS=ON
81+
cmake --build build
82+
ctest --test-dir build --output-on-failure

0 commit comments

Comments
 (0)