Skip to content

Disable testing by default #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ jobs:
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh ${{ matrix.clang_version }}
- name: Install ninja
run: sudo apt-get install ninja-build
- name: Install ninja and catch2
run: sudo apt-get install ninja-build catch2
- name: configure
run: cmake --preset linux-clang-release
run: cmake --preset linux-clang-release -D REFLECTION_TESTING=ON
- name: build
run: cmake --build --preset linux-clang-release
- name: test
Expand All @@ -59,9 +59,9 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt-get install ninja-build g++-${{ matrix.gcc_version }}
run: sudo apt-get install ninja-build catch2 g++-${{ matrix.gcc_version }}
- name: configure
run: cmake --preset linux-gcc-release
run: cmake --preset linux-gcc-release -D REFLECTION_TESTING=ON
- name: build
run: cmake --build --preset linux-gcc-release
- name: test
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ install(EXPORT reflection-cpp-targets
# ---------------------------------------------------------------------------
# unit tests

option(REFLECTION_TESTING "Enables building of unittests for reflection-cpp [default: ON]" ON)
option(REFLECTION_TESTING "Enables building of unittests for reflection-cpp [default: OFF]" OFF)
if(REFLECTION_TESTING)
find_package(Catch2 3.4.0 QUIET)
if(NOT Catch2_FOUND)
Expand Down