Skip to content

Commit d2a681c

Browse files
committed
add ci tests
1 parent 98d4a8d commit d2a681c

File tree

2 files changed

+46
-1
lines changed

2 files changed

+46
-1
lines changed

.github/workflows/ci_tests.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,51 @@ jobs:
120120
- name: Test Debug
121121
run: ctest --test-dir build --build-config Debug
122122

123+
configuration-test:
124+
runs-on: ubuntu-latest
125+
strategy:
126+
fail-fast: false
127+
matrix:
128+
args:
129+
- name: "Disable build testing"
130+
arg: "-DBEMAN_INPLACE_VECTOR_BUILD_TESTS=OFF"
131+
- name: "Disable example building"
132+
arg: "-DBEMAN_INPLACE_VECTOR_BUILD_EXAMPLES=OFF"
133+
- name: "Enable fixed size type"
134+
arg: "-DBEMAN_INPLACE_VECTOR_FIXED_SIZE_T=ON"
135+
name: "CMake: ${{ matrix.args.name }}"
136+
steps:
137+
- uses: actions/checkout@v4
138+
- name: Setup build environment
139+
uses: lukka/get-cmake@latest
140+
with:
141+
cmakeVersion: "~3.25.0"
142+
ninjaVersion: "^1.11.1"
143+
- name: Print installed software
144+
run: |
145+
cmake --version
146+
ninja --version
147+
- name: Configure CMake
148+
run: |
149+
cmake -B build -S . -DCMAKE_CXX_STANDARD=20 ${{ matrix.args.arg }}
150+
env:
151+
CMAKE_GENERATOR: "Ninja Multi-Config"
152+
- name: Build Release
153+
run: |
154+
# Portable commands only
155+
cmake --build build --config Release --parallel --verbose
156+
# cmake --build build --config Release --target all_verify_interface_header_sets
157+
cmake --install build --config Release --prefix /opt/beman.inplace_vector
158+
ls -R /opt/beman.inplace_vector
159+
- name: Build Debug
160+
run: |
161+
# Portable commands only
162+
cmake --build build --config Debug --parallel --verbose
163+
# cmake --build build --config Debug --target all_verify_interface_header_sets
164+
cmake --install build --config Debug --prefix /opt/beman.inplace_vector
165+
ls -R /opt/beman.inplace_vector
166+
167+
123168
create-issue-when-fault:
124169
runs-on: ubuntu-latest
125170
needs: [test]

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ project(
1515

1616
# [CMAKE.SKIP_EXAMPLES]
1717
option(
18-
BEMAN_EXEMPLAR_BUILD_EXAMPLES
18+
BEMAN_INPLACE_VECTOR_BUILD_EXAMPLES
1919
"Enable building examples. Default: ON. Values: { ON, OFF }."
2020
${PROJECT_IS_TOP_LEVEL}
2121
)

0 commit comments

Comments
 (0)