This repository has been archived by the owner on Aug 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 58
68 lines (63 loc) · 2.18 KB
/
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
68
name: "Rust CI"
on:
pull_request:
jobs:
build:
name: cargo build
runs-on: [ubuntu-22.04-github-hosted-32core]
steps:
- uses: actions/checkout@v3
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
rustflags: ""
- name: Setup rust
run: |
rustup set profile minimal
rustup toolchain install nightly-2023-08-23
rustup default nightly-2023-08-23
cargo install cargo-nextest
- name: Compile main
run: cargo build --verbose
- name: Compile encodings
run: cargo build --manifest-path circuit_encodings/Cargo.toml --verbose
- name: compile api
run: cargo build --manifest-path circuit_sequencer_api/Cargo.toml --verbose
- name: compile definitions
run: cargo build --manifest-path circuit_definitions/Cargo.toml --verbose
- name: Compile kzg
run: cargo build --manifest-path kzg/Cargo.toml --verbose
test:
name: cargo test
runs-on: [ubuntu-22.04-github-hosted-32core]
needs: build
steps:
- uses: actions/checkout@v3
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
rustflags: ""
- name: Setup rust
run: |
rustup set profile minimal
rustup toolchain install nightly-2023-08-23
rustup default nightly-2023-08-23
cargo install cargo-nextest
- name: Main test
run: cargo nextest run --release --test-threads 2
- name: Encodings test
run: cargo nextest run --release --manifest-path circuit_encodings/Cargo.toml
- name: Api tests
run: cargo nextest run --release --manifest-path circuit_sequencer_api/Cargo.toml
- name: Definitions test
run: cargo nextest run --release --manifest-path circuit_definitions/Cargo.toml
- name: Kzg tests
run: cargo nextest run --release --manifest-path kzg/Cargo.toml
formatting:
name: cargo fmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt
- name: Rustfmt Check
uses: actions-rust-lang/rustfmt@v1