forked from sameer/svg2gcode
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (55 loc) · 1.58 KB
/
Copy pathlib.yml
File metadata and controls
58 lines (55 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Build, test, and publish coverage for svg2gcode
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build
run: cargo build -p svg2gcode
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
profile: minimal
components: llvm-tools-preview
- uses: actions-rs/install@v0.1
with:
crate: grcov
version: latest
use-tool-cache: true
- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.toml') }}-lib
- uses: actions-rs/cargo@v1
with:
command: build
args: -p svg2gcode
env:
RUSTFLAGS: '-Cinstrument-coverage'
RUSTDOCFLAGS: '-Cinstrument-coverage'
- uses: actions-rs/cargo@v1
with:
command: test
args: --all-features --no-fail-fast -p svg2gcode
env:
RUSTFLAGS: '-Cinstrument-coverage'
RUSTDOCFLAGS: '-Cinstrument-coverage'
LLVM_PROFILE_FILE: 'codecov-instrumentation-%p-%m.profraw'
- name: grcov
run: grcov . -s . --binary-path ./target/debug/ -t lcov --branch -o lcov.info
- uses: codecov/codecov-action@v1
with:
token: ${{secrets.CODECOV_TOKEN}}