Skip to content

Commit ab7d287

Browse files
committed
Add module test
1 parent 3002f71 commit ab7d287

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -651,3 +651,37 @@ jobs:
651651
cmake --build . --config ${{matrix.build_type}}
652652
./${{matrix.build_type}}/unittest
653653
# TODO: Macos, mingw
654+
655+
unittest-linux-modules:
656+
runs-on: ubuntu-24.04
657+
needs: unittest-linux
658+
strategy:
659+
fail-fast: false
660+
matrix:
661+
compiler: [g++-10, clang++-18]
662+
stdlib: [libstdc++, libc++]
663+
dwarf_version: [4, 5]
664+
split_dwarf: [OFF, ON]
665+
exclude:
666+
- compiler: g++-10
667+
stdlib: libc++
668+
steps:
669+
- uses: actions/checkout@v4
670+
- name: dependencies
671+
run: |
672+
sudo apt install ninja-build clang-19 clang-tools-19
673+
- name: build and test
674+
run: |
675+
mkdir build
676+
cd build
677+
cmake .. \
678+
-GNinja \
679+
-DCMAKE_BUILD_TYPE=Debug \
680+
-DCMAKE_CXX_COMPILER=clang++-19 \
681+
-DCMAKE_C_COMPILER=clang-19 \
682+
-DCMAKE_CXX_STANDARD=20 \
683+
-DCPPTRACE_WERROR_BUILD=On \
684+
-DCPPTRACE_STD_FORMAT=Off \
685+
-DCPPTRACE_BUILD_TESTING=On
686+
ninja
687+
./unittest_module

0 commit comments

Comments
 (0)