Skip to content

Commit

Permalink
add coverage build
Browse files Browse the repository at this point in the history
  • Loading branch information
kthohr committed Jan 1, 2022
1 parent ed8cbb1 commit 5fe7978
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ jobs:
cxx: "g++",
cxxstd: "11"
}
- {
name: "ubuntu_latest_gcc_cxx11_coverage",
os: ubuntu-latest,
build_type: "Coverage",
cc: "gcc",
cxx: "g++",
cxxstd: "11"
}
- {
name: "ubuntu_latest_gcc9_cxx14",
os: ubuntu-latest,
Expand Down Expand Up @@ -91,3 +99,20 @@ jobs:
echo "Testing env.CXXT: ${{ env.CXXT }}"
make
./run_tests
- name: Coverage
if: startsWith(matrix.config.build_type, 'Coverage')
shell: bash
working-directory: tests
run: |
export SHOULD_RUN_COVERAGE="y"
./cov_check
cd ..
curl https://keybase.io/codecovsecurity/pgp_keys.asc | gpg --no-default-keyring --keyring trustedkeys.gpg --import
curl -Os https://uploader.codecov.io/latest/linux/codecov
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM.sig
gpgv codecov.SHA256SUM.sig codecov.SHA256SUM
shasum -a 256 -c codecov.SHA256SUM
chmod +x codecov
./codecov

0 comments on commit 5fe7978

Please sign in to comment.