Skip to content

Commit

Permalink
add coverage actions
Browse files Browse the repository at this point in the history
  • Loading branch information
sekiguchi-nagisa committed Aug 14, 2021
1 parent 572b47c commit 1f4d264
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,41 @@ jobs:
cd build
ctest --output-on-failure
build_on_linux_coverage:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- name: prepare
run: |
sudo apt-get install ninja-build lcov
- name: configure
run: |
mkdir build
cd build
cmake .. -G Ninja \
-DCMAKE_BUILD_TYPE=coverage \
-DCMAKE_C_COMPILER=gcc \
-DCMAKE_CXX_COMPILER=g++ \
-DUSE_EXTRA_TEST=on
- name: build
run: |
cd build
ninja
sudo ninja install
./ydsh ../tools/scripts/copy_mod4extra.ds
- name: test
run: |
cd build
ctest --output-on-failure
- name: generate lcov
run: |
./tools/scripts/report_cov.sh build
- name: coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./build/coverage_report-cleaned.info

build_on_linux_x86:
runs-on: ubuntu-18.04
steps:
Expand Down

0 comments on commit 1f4d264

Please sign in to comment.