-
Notifications
You must be signed in to change notification settings - Fork 11
45 lines (38 loc) · 1.06 KB
/
rust.yml
File metadata and controls
45 lines (38 loc) · 1.06 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
name: Rust (build and test)
on:
push:
branches:
- develop
- main
pull_request:
branches:
- develop
- main
jobs:
testing:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install nightly toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
- name: Installing dependencies
run: |
cargo version
rustup component add rustfmt
- name: Install Rust nightly
run: rustup toolchain install nightly --component llvm-tools-preview
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Generate code coverage
run: cd src/Rust ; cargo llvm-cov --lib --all-features --workspace --lcov --output-path lcov.info
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token:
files: src/Rust/lcov.info
fail_ci_if_error: true