From d2a681c163444e0fd4c1fd98fc7148a0bbcb7a12 Mon Sep 17 00:00:00 2001 From: River <26424577+wusatosi@users.noreply.github.com> Date: Sun, 16 Feb 2025 20:18:29 -0500 Subject: [PATCH] add ci tests --- .github/workflows/ci_tests.yml | 45 ++++++++++++++++++++++++++++++++++ CMakeLists.txt | 2 +- 2 files changed, 46 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci_tests.yml b/.github/workflows/ci_tests.yml index 4c56911..b4a7d3a 100644 --- a/.github/workflows/ci_tests.yml +++ b/.github/workflows/ci_tests.yml @@ -120,6 +120,51 @@ jobs: - name: Test Debug run: ctest --test-dir build --build-config Debug + configuration-test: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + args: + - name: "Disable build testing" + arg: "-DBEMAN_INPLACE_VECTOR_BUILD_TESTS=OFF" + - name: "Disable example building" + arg: "-DBEMAN_INPLACE_VECTOR_BUILD_EXAMPLES=OFF" + - name: "Enable fixed size type" + arg: "-DBEMAN_INPLACE_VECTOR_FIXED_SIZE_T=ON" + name: "CMake: ${{ matrix.args.name }}" + 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 software + run: | + cmake --version + ninja --version + - name: Configure CMake + run: | + cmake -B build -S . -DCMAKE_CXX_STANDARD=20 ${{ matrix.args.arg }} + env: + CMAKE_GENERATOR: "Ninja Multi-Config" + - name: Build Release + run: | + # Portable commands only + cmake --build build --config Release --parallel --verbose + # cmake --build build --config Release --target all_verify_interface_header_sets + cmake --install build --config Release --prefix /opt/beman.inplace_vector + ls -R /opt/beman.inplace_vector + - name: Build Debug + run: | + # Portable commands only + cmake --build build --config Debug --parallel --verbose + # cmake --build build --config Debug --target all_verify_interface_header_sets + cmake --install build --config Debug --prefix /opt/beman.inplace_vector + ls -R /opt/beman.inplace_vector + + create-issue-when-fault: runs-on: ubuntu-latest needs: [test] diff --git a/CMakeLists.txt b/CMakeLists.txt index a7ce7bb..46ae4c3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,7 +15,7 @@ project( # [CMAKE.SKIP_EXAMPLES] option( - BEMAN_EXEMPLAR_BUILD_EXAMPLES + BEMAN_INPLACE_VECTOR_BUILD_EXAMPLES "Enable building examples. Default: ON. Values: { ON, OFF }." ${PROJECT_IS_TOP_LEVEL} )