-
Notifications
You must be signed in to change notification settings - Fork 77
53 lines (47 loc) · 1.34 KB
/
ci.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: CI
on:
push:
branches: [ "main" ]
pull_request:
env:
CARGO_TERM_COLOR: always
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test:
name: test
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: risc0/risc0/.github/actions/rustup@release-0.19
- uses: risc0/risc0/.github/actions/sccache@release-0.19
- run: cargo install cargo-risczero && cargo risczero install
- run: cargo test --workspace --all-targets --all-features
clippy:
name: clippy
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: risc0/risc0/.github/actions/rustup@release-0.19
- uses: risc0/risc0/.github/actions/sccache@release-0.19
- uses: risc0/clippy-action@main
with:
reporter: 'github-pr-check'
fail_on_error: true
github_token: ${{ secrets.GITHUB_TOKEN }}
clippy_flags: --workspace --all-targets --all-features -- -Dwarnings
fmt:
name: fmt
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: risc0/risc0/.github/actions/rustup@release-0.19
- run: cargo fmt --all --check