Skip to content

Commit 674d4c7

Browse files
committed
this could work
1 parent 2ba4ca4 commit 674d4c7

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

.github/workflows/cmake-multi-platform.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -53,20 +53,11 @@ jobs:
5353
elif [ "$RUNNER_OS" = "Windows" ]; then
5454
echo "vcpkg-setup-file=bootstrap-vcpkg.bat" >> "$GITHUB_OUTPUT"
5555
fi
56-
57-
- name: Set coverage off
58-
if: matrix.c_compiler != 'gcc' || matrix.build_type == 'Release'
59-
id: coverage-state
60-
shell: bash
61-
run: |
56+
if [ {{ matrix.c_compiler }} != gcc ] || [ {{ matrix.build_type }} == 'Release' ]; then
6257
echo "enable_coverage=OFF" >> "$GITHUB_OUTPUT"
63-
64-
- name: Set coverage on
65-
if: matrix.c_compiler != 'gcc' && matrix.build_type == 'Release'
66-
id: coverage-state
67-
shell: bash
68-
run: |
58+
else
6959
echo "enable_coverage=ON" >> "$GITHUB_OUTPUT"
60+
fi
7061
7162
- name: Install lcov Linux
7263
id: install-lcov
@@ -99,7 +90,7 @@ jobs:
9990
-DCMAKE_CXX_COMPILER=${{ matrix.cxx_compiler }}
10091
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
10192
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
102-
-DENABLE_COVERAGE=${{ steps.coverage-state.outputs.enable_coverage }}
93+
-DENABLE_COVERAGE=${{ steps.strings.outputs.enable_coverage }}
10394
-S ${{ github.workspace }}
10495
10596
- name: Build

0 commit comments

Comments
 (0)