Skip to content

Commit

Permalink
Ported code
Browse files Browse the repository at this point in the history
  • Loading branch information
tapiocaboy committed Oct 9, 2024
1 parent 28e7cbf commit 8ccfef8
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/general_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,24 @@ jobs:

- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y libcurl4-openssl-dev libelf-dev libdw-dev cmake gcc
# Install tarpaulin, a Rust coverage tool
- name: Install cargo-tarpaulin
run: cargo install cargo-tarpaulin

# Run tarpaulin to generate coverage report
- name: Run coverage
run: cargo tarpaulin --out Xml

# Upload coverage report to Codecov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: ./cobertura.xml # Specify the report generated by tarpaulin
fail_ci_if_error: true
verbose: true

# Display coverage in GitHub PR
- name: Coverage badge
run: |
curl -s https://codecov.io/gh/${{ github.repository }}/branch/${{ github.ref_name }}/graph/badge.svg \
-o coverage-badge.svg

0 comments on commit 8ccfef8

Please sign in to comment.