Skip to content

Commit

Permalink
Fix grcov
Browse files Browse the repository at this point in the history
  • Loading branch information
io12 committed Aug 10, 2020
1 parent d75a0ae commit ad81ce1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
8 changes: 8 additions & 0 deletions .github/actions-rs/grcov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
branch: true
ignore-not-existing: true
llvm: true
output-type: lcov
prefix-dir: /home/runner/work/unf/unf
ignore:
- "/*"
- "../*"
17 changes: 3 additions & 14 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: test
args: --all
env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests"
RUSTFLAGS: -Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests
RUSTDOCFLAGS: -Cpanic=abort

# Note that `actions-rs/grcov` Action can install `grcov` too,
# but can't use faster installation methods yet.
Expand All @@ -107,21 +107,10 @@ jobs:
id: coverage
uses: actions-rs/grcov@v0.1
with:
coveralls-token: ${{ secrets.COVERALLS_TOKEN }}
config: .github/actions-rs/grcov.yml

- name: Coveralls upload
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel: true
path-to-lcov: ${{ steps.coverage.outputs.report }}

grcov_finalize:
runs-on: ubuntu-latest
needs: grcov
steps:
- name: Coveralls finalization
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true

0 comments on commit ad81ce1

Please sign in to comment.