Skip to content

Commit

Permalink
fix: move coverall to main
Browse files Browse the repository at this point in the history
  • Loading branch information
Roger-luo committed Feb 16, 2023
1 parent 5a40e3b commit a5df9c3
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 66 deletions.
65 changes: 0 additions & 65 deletions .github/workflows/grcov.yml

This file was deleted.

38 changes: 37 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,43 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: test
args: --no-default-features --workspace
args: --no-default-features --all
env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests"
# Note that `actions-rs/grcov` Action can install `grcov` too,
# but can't use faster installation methods yet.
# As a temporary experiment `actions-rs/install` Action plugged in here.
# Consider **NOT** to copy that into your workflow,
# but use `actions-rs/grcov` only
- name: Pre-installing grcov
uses: actions-rs/[email protected]
with:
crate: grcov
use-tool-cache: true

- name: Gather coverage data
id: coverage
uses: actions-rs/[email protected]
with:
coveralls-token: ${{ secrets.COVERALLS_TOKEN }}

- 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

fmt:
name: Rustfmt
Expand Down

0 comments on commit a5df9c3

Please sign in to comment.