-
Notifications
You must be signed in to change notification settings - Fork 7
52 lines (48 loc) · 1.54 KB
/
build-and-test.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
name: Build and Test
on:
push:
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
env:
CARGO_TERM_COLOR: always
SCCACHE_GHA_ENABLED: "false"
RUSTC_WRAPPER: "sccache"
jobs:
# TODO: Add a job to run clippy
lint:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Check formatting
run: cargo fmt --all -- --check
gpu-benchmarks:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: "1.77"
override: true
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
- name: Install circom
run: |
sudo wget -O ~/.cargo/bin/circom https://github.com/iden3/circom/releases/download/v2.1.9/circom-${{runner.os}}-amd64
sudo chmod +x ~/.cargo/bin/circom
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "20.x"
- name: Install snarkjs
run: npm install -g snarkjs
- name: Prepare CI for Core and FFI
run: ./scripts/prepare_ci.sh
- name: Run GPU Benchmarks tests
run: |
cd mopro-msm
cargo test test_msm_correctness -- --nocapture