Skip to content

Commit d2c4e13

Browse files
committed
codecov config and actions
1 parent 8e177ac commit d2c4e13

3 files changed

Lines changed: 29 additions & 3 deletions

File tree

.github/actions-rs/grcov.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
output-type: lcov
2+
output-file: ./lcov.info

.github/workflows/rust.yml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,32 @@ jobs:
1515
runs-on: ubuntu-latest
1616

1717
steps:
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@v3
19+
- uses: actions-rs/toolchain@v1
20+
with:
21+
toolchain: nightly
22+
override: true
1923
- name: Build
2024
run: cargo build --verbose
2125
- name: Run tests
2226
run: cargo test --verbose
27+
env:
28+
CARGO_INCREMENTAL: '0'
29+
RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
30+
RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
31+
- name: rust-grcov
32+
# You may pin to the exact commit or the version.
33+
# uses: actions-rs/grcov@bb47b1ed7883a1502fa6875d562727ace2511248
34+
uses: actions-rs/grcov@v0.1
35+
- name: Codecov
36+
# You may pin to the exact commit or the version.
37+
# uses: codecov/codecov-action@81cd2dc8148241f03f5839d295e000b8f761e378
38+
uses: codecov/codecov-action@v5
39+
env:
40+
CODECOV_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN }}
41+
with:
42+
# Repository upload token - get it from codecov.io. Required only for private repositories
43+
# token: # optional
44+
# Specify whether the Codecov output should be verbose
45+
verbose: true
46+
fail_ci_if_error: true

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Offroad
1+
# Offroad
22

3-
##2D offsetting for arc polylines
3+
## 2D offsetting for arc polylines
44

55

66
[![codecov](https://codecov.io/gh/radevgit/offroad/graph/badge.svg?token=34N49FRU78)](https://codecov.io/gh/radevgit/offroad)

0 commit comments

Comments
 (0)