Skip to content

Commit 6be0efa

Browse files
authored
feat: v1.0.0-rc.1 (#962)
2 parents 14eb569 + 3bfe5af commit 6be0efa

File tree

468 files changed

+22135
-25798
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

468 files changed

+22135
-25798
lines changed

.github/dependabot.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,15 @@ updates:
55
schedule:
66
interval: "weekly"
77
target-branch: "dev"
8+
ignore:
9+
- dependency-name: "axum"
10+
versions: ["> 0.7.4"]
811
- package-ecosystem: "docker"
912
directory: "/cli/docker"
1013
schedule:
1114
interval: "weekly"
12-
target-branch: "dev"
15+
target-branch: "dev"
16+
- package-ecosystem: "github-actions"
17+
directory: "/"
18+
schedule:
19+
interval: "weekly"

.github/workflows/docker-gnark.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Docker Gnark
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches:
8+
- "**"
9+
paths:
10+
- "recursion/gnark-ffi/**"
11+
- "recursion/gnark-cli/**"
12+
- "!recursion/gnark-ffi/assets/**"
13+
merge_group:
14+
15+
jobs:
16+
test-docker:
17+
name: Test
18+
runs-on: runs-on,runner=64cpu-linux-arm64,spot=false
19+
env:
20+
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
21+
steps:
22+
- name: Checkout sources
23+
uses: actions/checkout@v4
24+
25+
- name: Setup CI
26+
uses: ./.github/actions/setup
27+
28+
- name: Build docker image
29+
run: |
30+
docker build -t sp1-gnark -f ./Dockerfile.gnark-ffi .
31+
32+
- name: Run cargo test
33+
uses: actions-rs/cargo@v1
34+
env:
35+
SP1_GNARK_IMAGE: sp1-gnark
36+
with:
37+
command: test
38+
toolchain: nightly-2024-04-17
39+
args: --release -p sp1-prover -- --exact tests::test_e2e

.github/workflows/main.yml

Lines changed: 72 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ concurrency:
2020
jobs:
2121
plonk:
2222
name: Plonk Native
23-
runs-on: runs-on,cpu=64,ram=256,family=m7i+m7a,hdd=80,image=ubuntu22-full-x64
23+
runs-on: runs-on,cpu=64,ram=256,family=m7i+m7a,hdd=80,image=ubuntu22-full-x64,spot=false
2424
env:
2525
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
2626
steps:
@@ -39,9 +39,10 @@ jobs:
3939
env:
4040
RUSTFLAGS: -Copt-level=3 -Cdebug-assertions -Coverflow-checks=y -Cdebuginfo=0 -C target-cpu=native
4141
RUST_BACKTRACE: 1
42+
4243
plonk-docker:
4344
name: Plonk Docker
44-
runs-on: runs-on,cpu=64,ram=256,family=m7i+m7a,hdd=80,image=ubuntu22-full-x64
45+
runs-on: runs-on,cpu=64,ram=256,family=m7i+m7a,hdd=80,image=ubuntu22-full-x64,spot=false
4546
env:
4647
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
4748
steps:
@@ -60,6 +61,7 @@ jobs:
6061
env:
6162
RUSTFLAGS: -Copt-level=3 -Cdebug-assertions -Coverflow-checks=y -Cdebuginfo=0 -C target-cpu=native
6263
RUST_BACKTRACE: 1
64+
6365
check-branch:
6466
name: Check branch
6567
runs-on: ubuntu-latest
@@ -69,3 +71,71 @@ jobs:
6971
run: |
7072
echo "ERROR: You can only merge to main from dev, release/*, or hotfix/*."
7173
exit 1
74+
75+
ssz-withdrawals:
76+
name: Example (SSZ Withdrawals)
77+
runs-on: runs-on,runner=64cpu-linux-arm64,spot=false
78+
env:
79+
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
80+
steps:
81+
- name: Checkout sources
82+
uses: actions/checkout@v4
83+
84+
- name: Setup CI
85+
uses: ./.github/actions/setup
86+
87+
- name: Install SP1 toolchain
88+
run: |
89+
curl -L https://sp1.succinct.xyz | bash
90+
~/.sp1/bin/sp1up
91+
~/.sp1/bin/cargo-prove prove --version
92+
93+
- name: Install SP1 CLI
94+
run: |
95+
cd cli
96+
cargo install --force --locked --path .
97+
cd ~
98+
99+
- name: Run script
100+
run: |
101+
cd examples/ssz-withdrawals/program
102+
cargo add sp1-zkvm --path $GITHUB_WORKSPACE/zkvm/entrypoint
103+
cargo prove build
104+
cd ../script
105+
cargo remove sp1-sdk
106+
cargo add sp1-sdk --path $GITHUB_WORKSPACE/sdk
107+
SP1_DEV=1 RUST_LOG=info cargo run --release
108+
109+
tendermint:
110+
name: Example (Tendermint)
111+
runs-on: runs-on,runner=64cpu-linux-arm64,spot=false
112+
env:
113+
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
114+
steps:
115+
- name: Checkout sources
116+
uses: actions/checkout@v4
117+
118+
- name: Setup CI
119+
uses: ./.github/actions/setup
120+
121+
- name: Install SP1 toolchain
122+
run: |
123+
curl -L https://sp1.succinct.xyz | bash
124+
~/.sp1/bin/sp1up
125+
~/.sp1/bin/cargo-prove prove --version
126+
127+
- name: Install SP1 CLI
128+
run: |
129+
cd cli
130+
cargo install --force --locked --path .
131+
cd ~
132+
133+
- name: Run script
134+
run: |
135+
cd examples/tendermint/program
136+
cargo add sp1-zkvm --path $GITHUB_WORKSPACE/zkvm/entrypoint
137+
cargo prove build
138+
cd ../script
139+
cargo remove sp1-sdk
140+
cargo add sp1-sdk --path $GITHUB_WORKSPACE/sdk
141+
SP1_DEV=1 RUST_LOG=info cargo run --release

.github/workflows/pr.yml

Lines changed: 5 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ on:
1616
- "zkvm/**"
1717
- "tests/**"
1818
- "examples/**"
19+
- "Cargo.toml"
1920
- ".github/workflows/**"
2021
merge_group:
2122

@@ -26,7 +27,7 @@ concurrency:
2627
jobs:
2728
test-x86:
2829
name: Test (x86-64)
29-
runs-on: runs-on,runner=64cpu-linux-x64
30+
runs-on: runs-on,runner=64cpu-linux-x64,spot=false
3031
env:
3132
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
3233
steps:
@@ -57,7 +58,7 @@ jobs:
5758

5859
test-arm:
5960
name: Test (ARM)
60-
runs-on: runs-on,runner=64cpu-linux-arm64
61+
runs-on: runs-on,runner=64cpu-linux-arm64,spot=false
6162
env:
6263
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
6364
steps:
@@ -86,31 +87,6 @@ jobs:
8687
FRI_QUERIES: 1
8788
SP1_DEV: 1
8889

89-
test-docker:
90-
name: Test Docker
91-
runs-on: runs-on,runner=64cpu-linux-arm64
92-
env:
93-
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
94-
steps:
95-
- name: Checkout sources
96-
uses: actions/checkout@v4
97-
98-
- name: Setup CI
99-
uses: ./.github/actions/setup
100-
101-
- name: Build docker image
102-
run: |
103-
docker build -t sp1-gnark -f ./Dockerfile.gnark-ffi .
104-
105-
- name: Run cargo test
106-
uses: actions-rs/cargo@v1
107-
env:
108-
SP1_GNARK_IMAGE: sp1-gnark
109-
with:
110-
command: test
111-
toolchain: nightly-2024-04-17
112-
args: --release -p sp1-prover -- --exact tests::test_e2e
113-
11490
lint:
11591
name: Formatting & Clippy
11692
runs-on: runs-on,runner=8cpu-linux-x64
@@ -161,6 +137,7 @@ jobs:
161137
run: |
162138
cd cli
163139
cargo install --force --locked --path .
140+
~/.sp1/bin/cargo-prove prove install-toolchain
164141
cd ~
165142
166143
- name: Run cargo check
@@ -194,7 +171,7 @@ jobs:
194171
195172
- name: Run cargo prove new
196173
run: |
197-
cargo prove new fibonacci
174+
cargo prove new fibonacci --version dev
198175
199176
- name: Build program and run script
200177
run: |

.github/workflows/release-plz.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Release Plz
2+
3+
permissions:
4+
pull-requests: write
5+
contents: write
6+
7+
on:
8+
push:
9+
branches:
10+
- main
11+
12+
jobs:
13+
release-plz:
14+
name: Release-plz
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
- name: Install Rust toolchain
22+
uses: dtolnay/rust-toolchain@stable
23+
- name: Run release-plz
24+
uses: MarcoIeni/[email protected]
25+
with:
26+
command: release
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.RELEASE_PLZ_TOKEN }}
29+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 commit comments

Comments
 (0)