-
Notifications
You must be signed in to change notification settings - Fork 10
67 lines (61 loc) · 1.48 KB
/
cairo-ci.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Cairo workflow
on:
push:
branches:
- main
pull_request:
types:
- opened
- reopened
- synchronize
- auto_merge_enabled
merge_group:
types:
- checks_requested
jobs:
scarb-test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./stwo_cairo_verifier
steps:
- uses: actions/checkout@v3
- uses: software-mansion/setup-scarb@v1
with:
scarb-version: "nightly-2024-06-01"
- run: scarb fmt --check
- run: scarb test
run-tests:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./stwo_cairo_prover
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
components: rustfmt
profile: minimal
toolchain: nightly-2024-01-04
- uses: Swatinem/rust-cache@v2
- run: cargo +nightly-2024-01-04 test --release
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
components: rustfmt
toolchain: nightly-2024-01-04
- uses: Swatinem/rust-cache@v2
- run: scripts/rust_fmt.sh --check
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@master
with:
components: clippy
toolchain: nightly-2024-01-04
- uses: Swatinem/rust-cache@v2
- run: scripts/clippy.sh