Skip to content

Commit a28d0a8

Browse files
committed
Run examples as test too
1 parent ee3d65b commit a28d0a8

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

.github/workflows/macos.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,16 @@ jobs:
2424
- uses: actions/checkout@v4
2525

2626
- name: Setup Cpp
27-
# if: startsWith(matrix.compiler, 'clang')
2827
uses: aminya/setup-cpp@v1
2928
with:
30-
# TODO: compiler: llvm-19
31-
# clangtidy: true
3229
# cmake: true
3330
ninja: true
31+
gcovr: true
3432

3533
- name: Install llvm-19
3634
if: startsWith(matrix.compiler, 'clang')
3735
run: |
38-
brew install llvm@19 || echo ignored
36+
brew install llvm@19
3937
4038
- name: macos clang++-19 ${{ matrix.preset }}
4139
if: startsWith(matrix.compiler, 'clang')

examples/CMakeLists.txt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,5 @@ foreach(example ${ALL_EXAMPLES})
2323
beman.inplace_vector.examples.${example}
2424
beman::beman_inplace_vector
2525
)
26-
if(PROJECT_IS_TOP_LEVEL)
27-
add_test(
28-
NAME ${example}
29-
COMMAND beman.inplace_vector.examples.${example}
30-
)
31-
endif()
26+
add_test(NAME ${example} COMMAND beman.inplace_vector.examples.${example})
3227
endforeach()

0 commit comments

Comments
 (0)