Skip to content

Commit 8fdc025

Browse files
author
NMuleo
committed
added condition for all tests
1 parent 43fb47d commit 8fdc025

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/cmake.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -172,13 +172,14 @@ jobs:
172172
run: cmake --build . --config ${{matrix.build-type}} --target snitch_runtime_tests_run
173173

174174
- name: Test (with snitch)
175+
if: ${{!contains(matrix.platform.flags, '-DSNITCH_ENABLE=OFF')}}
175176
shell: bash
176177
working-directory: ${{github.workspace}}/build
177178
run: cmake --build . --config ${{matrix.build-type}} --target snitch_runtime_tests_self_run
178179

179180
- name: Approval tests (with doctest)
180181
# Approval tests only run on "default" library configuration, which happens to be the published one
181-
if: matrix.platform.publish
182+
if: ${{matrix.platform.publish && !contains(matrix.platform.flags, '-DSNITCH_ENABLE=OFF')}}
182183
shell: bash
183184
working-directory: ${{github.workspace}}/build
184185
run: cmake --build . --config ${{matrix.build-type}} --target snitch_approval_tests_run

0 commit comments

Comments
 (0)