Skip to content

Commit

Permalink
fix: Use grcov action instead of installing it manually.
Browse files Browse the repository at this point in the history
  • Loading branch information
DanCardin committed Jan 26, 2021
1 parent 6033dbb commit 5a7ac24
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@ jobs:
override: true

- name: Install grcov
uses: actions-rs/install@v0.1
with:
crate: grcov
version: latest
use-tool-cache: true
env:
LINK: https://github.com/mozilla/grcov/releases/download
GRCOV_VERSION: 0.7.1
run: |
curl -L "$LINK/v$GRCOV_VERSION/grcov-linux-x86_64.tar.bz2" |
tar xj -C $HOME/.cargo/bin
- name: Test
uses: actions-rs/cargo@v1
Expand All @@ -49,6 +50,8 @@ jobs:
- name: Generate coverage data
id: grcov
uses: actions-rs/grcov@v0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload coverage as artifact
uses: actions/upload-artifact@v2
with:
Expand Down

0 comments on commit 5a7ac24

Please sign in to comment.