-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 939 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
39
name: build
on:
push:
branches:
- "**"
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macOS-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: setup rust
run: |
rustup update stable
- name: build
run: cargo build --release
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
if: matrix.os == 'ubuntu-latest'
- name: Generate code coverage
run: cargo llvm-cov --all-features --workspace --lcov --output-path coverage.lcov
if: matrix.os == 'ubuntu-latest'
- name: coveralls
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: coverage.lcov
if: matrix.os == 'ubuntu-latest'