Skip to content

Commit 5d6fb56

Browse files
committed
[ci] introduce consume from {build,install} tree tests
1 parent 0edd90b commit 5d6fb56

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/cmake.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,3 +149,30 @@ jobs:
149149
}
150150
EOF
151151
valgrind --error-exitcode=1 --leak-check=full --suppressions=tblis.supp ./tapp-reference-test++
152+
153+
- name: Consume from build tree
154+
if: ${{ !matrix.valgrind && !matrix.sanitize }}
155+
shell: bash
156+
run: |
157+
cmake -S $GITHUB_WORKSPACE/test/consume -B ${{github.workspace}}/consume-build \
158+
-G Ninja \
159+
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
160+
-Dtapp_DIR=${{github.workspace}}/build
161+
cmake --build ${{github.workspace}}/consume-build
162+
ctest --test-dir ${{github.workspace}}/consume-build --output-on-failure
163+
164+
- name: Install
165+
if: ${{ !matrix.valgrind && !matrix.sanitize }}
166+
shell: bash
167+
run: cmake --install ${{github.workspace}}/build --prefix ${{github.workspace}}/install
168+
169+
- name: Consume from install tree
170+
if: ${{ !matrix.valgrind && !matrix.sanitize }}
171+
shell: bash
172+
run: |
173+
cmake -S $GITHUB_WORKSPACE/test/consume -B ${{github.workspace}}/consume-install \
174+
-G Ninja \
175+
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
176+
-DCMAKE_PREFIX_PATH=${{github.workspace}}/install
177+
cmake --build ${{github.workspace}}/consume-install
178+
ctest --test-dir ${{github.workspace}}/consume-install --output-on-failure

0 commit comments

Comments
 (0)