-
Notifications
You must be signed in to change notification settings - Fork 9
66 lines (55 loc) · 1.56 KB
/
rust.yml
File metadata and controls
66 lines (55 loc) · 1.56 KB
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
name: zkEngine CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
components: rustfmt, clippy
- name: Run cargo fmt --check
run: cargo fmt -- --check
- name: Run cargo clippy
run: cargo clippy --verbose --all-targets --all-features -- -D warnings
- name: Install wasm32 target
run: rustup target add wasm32-unknown-unknown
- name: Build for WASM
run: cargo build --target wasm32-unknown-unknown
tests:
needs: lint
runs-on: ubuntu-latest
timeout-minutes: 360
strategy:
matrix:
test_name:
- test_gradient_boosting
- test_integer_hash
- test_bulk_ops
- test_toy_rsa
steps:
- uses: actions/checkout@v5
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Run ${{ matrix.test_name }}
run: |
# keep the runner alive and then run just this one ignored test
timeout 21600 bash -c '
while true; do echo "🟢 still running..."; sleep 60; done &
RUST_LOG=debug cargo test --release --package zk-engine --lib \
-- tests::${{ matrix.test_name }} --exact --show-output --ignored
'