Skip to content

Commit

Permalink
(ci) Still fixing Codecov GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
acgetchell committed Mar 6, 2022
1 parent b3352a8 commit 1a85309
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/codecov-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,16 @@ on: [push, pull_request, workflow_dispatch]
jobs:
codecov:
name: CodeCov
runs-on: ubuntu-latest
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: true

- name: Setup GCC
uses: egor-tensin/setup-gcc@v1
with:
version: 11
platform: x64

- name: Setup
run: |
sudo apt update
sudo apt-get install build-essential ninja-build ccache lcov
brew install ninja ccache lcov
- name: Restore artifacts, or setup vcpkg
uses: lukka/run-vcpkg@v10
with:
Expand All @@ -31,7 +24,8 @@ jobs:
shell: bash
run: |
vcpkg install --feature-flags=manifests
cmake -G Ninja -D CMAKE_BUILD_TYPE=RelWithDebInfo -D ENABLE_TESTING:BOOL=TRUE -D ENABLE_COVERAGE:BOOL=TRUE -S . -B build
cmake -G Ninja -D ENABLE_COVERAGE:BOOL=TRUE -S . -B build
- name: Build
run: cmake --build build --config Debug

Expand All @@ -44,6 +38,7 @@ jobs:
lcov --capture --directory . --output-file coverage.info
lcov --remove coverage.info '/usr/*' '*/usr/include/*' '*/vcpkg/*' --output-file coverage.info
lcov --list coverage.info
- name: Upload coverage to CodeCov
run: |
cd $GITHUB_WORKSPACE/build
Expand Down

0 comments on commit 1a85309

Please sign in to comment.