Skip to content

Commit

Permalink
Fixed workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pzxmsry committed Jan 15, 2024
1 parent edf8b95 commit 3303771
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions .github/workflows/cmake_ctest_multiplatform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,17 @@ jobs:
# Set fail-fast to false to ensure that feedback is delivered for all matrix combinations. Consider changing this to true when your workflow is stable.
fail-fast: true

# Set up a matrix to run the following 3 configurations:
# Set up a matrix to run the following configurations:
# 1. <Windows, Release, latest MSVC compiler toolchain on the default runner image, default generator>
# 2. <Linux, Release, latest GCC compiler toolchain on the default runner image, default generator>
# 3. <Linux, Release, latest Clang compiler toolchain on the default runner image, default generator>
#
# To add more build types (Release, Debug, RelWithDebInfo, etc.) customize the build_type list.
# 2. <Windows, Debug, latest MSVC compiler toolchain on the default runner image, default generator>
# 3. <Linux, Release, latest GCC compiler toolchain on the default runner image, default generator>
# 4. <Linux, Release, latest Clang compiler toolchain on the default runner image, default generator>
# 5. <Linux, Debug, latest GCC compiler toolchain on the default runner image, default generator>
# 6. <Linux, Debug, latest Clang compiler toolchain on the default runner image, default generator>
# 7. <MacOS, Release, latest GCC compiler toolchain on the default runner image, default generator>
# 8. <MacOS, Release, latest Clang compiler toolchain on the default runner image, default generator>
# 9. <MacOS, Debug, latest GCC compiler toolchain on the default runner image, default generator>
# 10. <MacOS, Debug, latest Clang compiler toolchain on the default runner image, default generator>
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
build_type: [Debug, Release]
Expand Down Expand Up @@ -62,6 +67,9 @@ jobs:
run: |
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
- name: Install lcov
run: sudo apt update && sudo apt install lcov
if: ${{ matrix.os == 'ubuntu-latest' }}

- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
Expand All @@ -86,6 +94,15 @@ jobs:
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest --build-config ${{ matrix.build_type }}

- name: Gather coverage
working-directory: ${{ steps.strings.outputs.build-output-dir }}
run: lcov --compat-libtool --capture --directory . | sed s@^SF:%s/@SF:@ > lcov.info
if: ${{ matrix.os == 'ubuntu-latest' }}

- name: TestLS
working-directory: ${{ steps.strings.outputs.build-output-dir }}
run: ls -la

- name: Coveralls Parallel
uses: coverallsapp/github-action@v2
with:
Expand Down

0 comments on commit 3303771

Please sign in to comment.