-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 1.04 KB
/
master.yml
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
name: Cargo build
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.66.0
- run: cargo test -- --include-ignored
- run: cargo test --examples
- run: cargo doc --no-deps
- run: rustup component add clippy
- run: bin/clippy-pedantic.sh
- run: cargo bench --no-run --profile dev
- run: cargo clean
- run: rustup default nightly
- run: rustup component add llvm-tools-preview
- run: curl -L https://github.com/mozilla/grcov/releases/latest/download/grcov-x86_64-unknown-linux-gnu.tar.bz2 | tar jxf -
- run: PATH=$PATH:$(pwd) bin/coverage-report.sh
- run: bash <(curl -s https://codecov.io/bash) -f lcov.info
benchmark:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- run: cargo install cargo-criterion
- run: cargo criterion