Skip to content

Commit f5bb16c

Browse files
committed
Add native Rust proof CI
1 parent 567c4fc commit f5bb16c

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,39 @@ jobs:
6464
run: |
6565
pytest tests/ -v --tb=short --maxfail=1 \
6666
--cov=src/zklora/ --cov-branch --cov-fail-under=30
67+
68+
rust-native:
69+
name: native Rust backend
70+
runs-on: ubuntu-latest
71+
timeout-minutes: 35
72+
steps:
73+
- name: Checkout
74+
uses: actions/checkout@v4
75+
76+
- name: Set up Python
77+
uses: actions/setup-python@v5
78+
with:
79+
python-version: "3.11"
80+
81+
- name: Set up Rust
82+
uses: dtolnay/rust-toolchain@stable
83+
with:
84+
components: rustfmt
85+
86+
- name: Check Rust formatting
87+
working-directory: src
88+
run: cargo fmt --check
89+
90+
- name: Test Rust native backend
91+
working-directory: src
92+
run: cargo test --features python
93+
94+
- name: Check Python extension module feature
95+
working-directory: src
96+
run: cargo check --features extension-module
97+
98+
- name: Run release real-proof smoke test
99+
working-directory: src
100+
run: |
101+
cargo test --release --features python \
102+
real_proof_verifies_for_tiny_relation -- --ignored

0 commit comments

Comments
 (0)