From 0cbb8fdccf2d2b55c2b1bef8e506ac4b6d882dd2 Mon Sep 17 00:00:00 2001 From: River <26424577+wusatosi@users.noreply.github.com> Date: Sat, 9 Nov 2024 22:02:38 -0500 Subject: [PATCH 1/3] add configuration testing --- .github/workflows/ci_tests.yml | 36 ++++++++++++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci_tests.yml b/.github/workflows/ci_tests.yml index 96a46fa..18fc2b0 100644 --- a/.github/workflows/ci_tests.yml +++ b/.github/workflows/ci_tests.yml @@ -27,7 +27,7 @@ jobs: - name: Run preset run: cmake --workflow --preset ${{ matrix.preset }} - test: + gtest-test: strategy: fail-fast: false matrix: @@ -102,9 +102,41 @@ jobs: - name: Test Debug run: ctest --test-dir build --build-config Debug + configuration-test: + runs-on: ubuntu-latest + name: "Configuration Test: No BUILD_TESTING" + steps: + - uses: actions/checkout@v4 + - name: Setup build environment + uses: lukka/get-cmake@latest + with: + cmakeVersion: "~3.25.0" + ninjaVersion: "^1.11.1" + - name: Print installed softwares + run: | + cmake --version + ninja --version + - name: Configure CMake + run: | + cmake -B build -S . -DCMAKE_CXX_STANDARD=17 -DBUILD_TESTING=OFF + env: + CMAKE_GENERATOR: "Ninja Multi-Config" + - name: Build Release + run: | + cmake --build build --config Release --verbose + cmake --build build --config Release --target all_verify_interface_header_sets + cmake --install build --config Release --prefix /opt/beman.exemplar + find /opt/beman.exemplar -type f + - name: Build Debug + run: | + cmake --build build --config Debug --verbose + cmake --build build --config Debug --target all_verify_interface_header_sets + cmake --install build --config Debug --prefix /opt/beman.exemplar + find /opt/beman.exemplar -type f + create-issue-when-fault: runs-on: ubuntu-latest - needs: [preset-test, test] + needs: [preset-test, gtest-test, configuration-test] if: failure() && github.event_name == 'schedule' steps: # See https://github.com/cli/cli/issues/5075 From db2b30d8395393d2824602fe375c40be11992093 Mon Sep 17 00:00:00 2001 From: River <26424577+wusatosi@users.noreply.github.com> Date: Mon, 11 Nov 2024 21:48:42 -0500 Subject: [PATCH 2/3] fix install --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index fff30fb..e25ad46 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,6 +9,7 @@ project( LANGUAGES CXX ) +include(GNUInstallDirs) include(CTest) include(FetchContent) From 7dd2df661f114bb45dd6c9c775ce8df3aa73f335 Mon Sep 17 00:00:00 2001 From: River <26424577+wusatosi@users.noreply.github.com> Date: Tue, 12 Nov 2024 00:51:45 -0500 Subject: [PATCH 3/3] Sort includes --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e25ad46..520769c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,9 +9,9 @@ project( LANGUAGES CXX ) -include(GNUInstallDirs) include(CTest) include(FetchContent) +include(GNUInstallDirs) if(BUILD_TESTING) enable_testing()