Skip to content

Commit

Permalink
(ci) Try new CodeCov GitHub Action
Browse files Browse the repository at this point in the history
Also update vcpkgGitCommitId: 4116148a7f5c09d39da34ffb75f33283796d687b
  • Loading branch information
acgetchell committed Apr 11, 2023
1 parent a9a08a1 commit b0a39bb
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 30 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/codecov-upload.yml
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Restore artifacts or setup vcpkg
uses: lukka/run-vcpkg@v10
with:
vcpkgGitCommitId: cd5a39fc6333563884d9eea15bfb6f5a450b1cf1
vcpkgGitCommitId: 4116148a7f5c09d39da34ffb75f33283796d687b

- name: Configure
run: cmake -G Ninja -D CMAKE_BUILD_TYPE=RelWithDebInfo -D ENABLE_TESTING:BOOL=TRUE -D ENABLE_COVERAGE:BOOL=TRUE -S . -B build
Expand All @@ -38,26 +38,26 @@ jobs:
working-directory: build
run: ctest --output-on-failure -j 2

- name: collect code coverage
run: bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"

# - name: Generate coverage info
# working-directory: build
# continue-on-error: true
# run: |
# mkdir gcov-reports
# pushd gcov-reports
# for f in `find ../tests/CMakeFiles/CDT_test.dir -name '*.o'`; do
# echo "Processing $f file..."
# gcov -o ${f} x
# done
# ls | wc -l
# popd
#
# - name: Submit to codecov.io
# uses: codecov/codecov-action@v3
# with:
# directory: build/gcov-reports
# fail_ci_if_error: false
# verbose: true
# gcov: true
# - name: collect code coverage
# run: bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"

- name: Generate coverage info
working-directory: build
continue-on-error: true
run: |
mkdir gcov-reports
pushd gcov-reports
for f in `find ../tests/CMakeFiles/CDT_test.dir -name '*.o'`; do
echo "Processing $f file..."
gcov -o ${f} x
done
ls | wc -l
popd
- name: Submit to codecov.io
uses: codecov/codecov-action@v3
with:
directory: build/gcov-reports
fail_ci_if_error: false
verbose: true
gcov: true
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Expand Up @@ -66,7 +66,7 @@ jobs:
- name: Restore artifacts or setup vcpkg
uses: lukka/run-vcpkg@v10
with:
vcpkgGitCommitId: cd5a39fc6333563884d9eea15bfb6f5a450b1cf1
vcpkgGitCommitId: 4116148a7f5c09d39da34ffb75f33283796d687b

- name: Configure
run: cmake --preset=build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linux-clang.yml
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Restore artifacts or setup vcpkg
uses: lukka/run-vcpkg@v10
with:
vcpkgGitCommitId: cd5a39fc6333563884d9eea15bfb6f5a450b1cf1
vcpkgGitCommitId: 4116148a7f5c09d39da34ffb75f33283796d687b

- name: Configure
run: cmake --preset=build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linux-gcc.yml
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Restore artifacts or setup vcpkg
uses: lukka/run-vcpkg@v10
with:
vcpkgGitCommitId: cd5a39fc6333563884d9eea15bfb6f5a450b1cf1
vcpkgGitCommitId: 4116148a7f5c09d39da34ffb75f33283796d687b

- name: Configure
run: cmake --preset=build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/macos.yml
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Restore artifacts or setup vcpkg
uses: lukka/run-vcpkg@v10
with:
vcpkgGitCommitId: cd5a39fc6333563884d9eea15bfb6f5a450b1cf1
vcpkgGitCommitId: 4116148a7f5c09d39da34ffb75f33283796d687b

- name: Configure
run: cmake --preset=build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sonarcloud.yml
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Restore artifacts or setup vcpkg
uses: lukka/run-vcpkg@v10
with:
vcpkgGitCommitId: cd5a39fc6333563884d9eea15bfb6f5a450b1cf1
vcpkgGitCommitId: 4116148a7f5c09d39da34ffb75f33283796d687b

- name: Configure
run: cmake -G Ninja -D CMAKE_BUILD_TYPE=RelWithDebInfo -D ENABLE_TESTING:BOOL=TRUE -D ENABLE_COVERAGE:BOOL=TRUE -S . -B build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows-msvc.yml
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Restore artifacts, or setup vcpkg
uses: lukka/run-vcpkg@v10
with:
vcpkgGitCommitId: cd5a39fc6333563884d9eea15bfb6f5a450b1cf1
vcpkgGitCommitId: 4116148a7f5c09d39da34ffb75f33283796d687b

- name: Install vcpkg packages and configure CMake
run: |
Expand Down

0 comments on commit b0a39bb

Please sign in to comment.