Skip to content
This repository was archived by the owner on Apr 19, 2023. It is now read-only.

Multiline commands with yaml folded style #39

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,12 @@ jobs:
# make sure coverage is only enabled for Debug builds, since it sets -O0 to make sure coverage
# has meaningful results
- name: Configure CMake
run: |
cmake -S . -B ./build -G "${{matrix.generator}}" -DCMAKE_BUILD_TYPE:STRING=${{matrix.build_type}} -DENABLE_DEVELOPER_MODE:BOOL=${{matrix.developer_mode}} -DOPT_ENABLE_COVERAGE:BOOL=${{ matrix.build_type == 'Debug' }} -DGIT_SHA:STRING=${{ github.sha }}
run: >
cmake -S . -B ./build -G "${{matrix.generator}}"
-DCMAKE_BUILD_TYPE:STRING=${{matrix.build_type}}
-DENABLE_DEVELOPER_MODE:BOOL=${{matrix.developer_mode}}
-DOPT_ENABLE_COVERAGE:BOOL=${{ matrix.build_type == 'Debug' }}
-DGIT_SHA:STRING=${{ github.sha }}

- name: Build
# Execute the build. You can specify a specific target with "--target <NAME>"
Expand All @@ -157,15 +161,19 @@ jobs:
working-directory: ./build
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: |
run: >
ctest -C ${{matrix.build_type}}
gcovr -j ${{env.nproc}} --delete --root ../ --print-summary --xml-pretty --xml coverage.xml . --gcov-executable '${{ matrix.gcov_executable }}'

gcovr -j ${{env.nproc}} --delete --root ../ --print-summary --xml-pretty
--xml coverage.xml . --gcov-executable '${{ matrix.gcov_executable }}'

- name: Windows - Test and coverage
if: runner.os == 'Windows'
working-directory: ./build
run: |
OpenCppCoverage.exe --export_type cobertura:coverage.xml --cover_children -- ctest -C ${{matrix.build_type}}
run: >
OpenCppCoverage.exe
--export_type cobertura:coverage.xml
--cover_children -- ctest -C ${{matrix.build_type}}

- name: CPack
if: matrix.package_generator != ''
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,11 @@ jobs:
# make sure coverage is only enabled for Debug builds, since it sets -O0 to make sure coverage
# has meaningful results
- name: Configure CMake
run: |
cmake -S . -B ./build -G "${{matrix.generator}}" -DCMAKE_BUILD_TYPE:STRING=${{matrix.build_type}} -DENABLE_DEVELOPER_MODE:BOOL=${{matrix.developer_mode}} -DOPT_ENABLE_COVERAGE:BOOL=${{ matrix.build_type == 'Debug' }}
run: >
cmake -S . -B ./build -G "${{matrix.generator}}"
-DCMAKE_BUILD_TYPE:STRING=${{matrix.build_type}}
-DENABLE_DEVELOPER_MODE:BOOL=${{matrix.developer_mode}}
-DOPT_ENABLE_COVERAGE:BOOL=${{ matrix.build_type == 'Debug' }}

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down