Skip to content

Commit c065411

Browse files
authored
Merge pull request #2 from ERoydev/dev/zkvm
Enhance VM: Add zero-knowledge (zk) specific output handling
2 parents 87e85da + 419d511 commit c065411

File tree

15 files changed

+1233
-55
lines changed

15 files changed

+1233
-55
lines changed

.env.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# ZK related configurations
2+
ZK_STATE_CAPACITY=20

.github/workflows/main.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Rust Tests
2+
3+
on:
4+
push:
5+
6+
pull_request:
7+
branches: [ main ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
test:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v3
18+
19+
- name: Setup Rust
20+
uses: actions-rs/toolchain@v1
21+
with:
22+
toolchain: stable
23+
profile: minimal
24+
override: true
25+
26+
- name: Cache cargo registry
27+
uses: actions/cache@v3
28+
with:
29+
path: ~/.cargo/registry
30+
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
31+
32+
- name: Cache cargo index
33+
uses: actions/cache@v3
34+
with:
35+
path: ~/.cargo/git
36+
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
37+
38+
- name: Cache cargo build
39+
uses: actions/cache@v3
40+
with:
41+
path: target
42+
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
43+
44+
- name: Run tests
45+
run: cargo test --verbose
46+
47+
- name: Run clippy
48+
run: cargo clippy -- -D warnings

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@ target
2020
# and can be added to the global gitignore or merged into this file. For a more nuclear
2121
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
2222
#.idea/
23+
24+
25+
.env

0 commit comments

Comments
 (0)