-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (33 loc) · 890 Bytes
/
build.yaml
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
name: build
on:
push:
branches:
- "**"
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
# - windows-latest
- macos-latest
steps:
- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Setup Rust LLVM coverage tools
run: |
rustup component add llvm-tools-preview
cargo install cargo-llvm-cov
- name: Checkout the project
uses: actions/checkout@v4
- name: Test & Build
run: |
cargo llvm-cov --lcov --output-path coverage.lcov
cargo build
- name: Send coverage to coveralls
uses: coverallsapp/github-action@master
if: matrix.os == 'ubuntu-latest'
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: coverage.lcov