Skip to content

Commit 923d77d

Browse files
authored
feat: v1.1.0 (#1233)
2 parents dd032eb + a78922b commit 923d77d

File tree

255 files changed

+6149
-2355
lines changed

Some content is hidden

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

255 files changed

+6149
-2355
lines changed

.github/actions/setup/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ runs:
3737
~/.cargo/git/db/
3838
target/
3939
~/.rustup/
40-
key: rust-nightly-2024-04-17-${{ hashFiles('**/Cargo.toml') }}
41-
restore-keys: rust-nightly-2024-04-17-
40+
key: rust-1.79.0-${{ hashFiles('**/Cargo.toml') }}
41+
restore-keys: rust-1.79.0-
4242

4343
- name: Setup toolchain
4444
id: rustc-toolchain
4545
shell: bash
4646
run: |
47-
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain nightly-2024-04-17 -y
47+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain 1.79.0 -y

.github/workflows/book.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ jobs:
108108
.
109109
110110
- name: Upload artifact
111-
uses: actions/upload-artifact@v3
111+
uses: actions/upload-artifact@v4
112112
with:
113113
name: github-pages
114114
path: ${{ runner.temp }}/artifact.tar
@@ -135,4 +135,4 @@ jobs:
135135
steps:
136136
- name: Deploy to GitHub Pages
137137
id: deployment
138-
uses: actions/deploy-pages@v2
138+
uses: actions/deploy-pages@v4

.github/workflows/docker-gnark.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,13 @@ on:
1515
jobs:
1616
test-docker:
1717
name: Test
18-
runs-on: runs-on,runner=64cpu-linux-arm64,spot=false
18+
runs-on:
19+
[
20+
runs-on,
21+
runner=64cpu-linux-arm64,
22+
spot=false,
23+
"run-id=${{ github.run_id }}",
24+
]
1925
env:
2026
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
2127
steps:
@@ -35,5 +41,5 @@ jobs:
3541
SP1_GNARK_IMAGE: sp1-gnark
3642
with:
3743
command: test
38-
toolchain: nightly-2024-04-17
44+
toolchain: 1.79.0
3945
args: --release -p sp1-prover -- --exact tests::test_e2e

.github/workflows/docker-publish-gnark.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
uses: actions/checkout@v4
3535

3636
- name: Install Docker BuildX
37-
uses: docker/setup-buildx-action@v2
37+
uses: docker/setup-buildx-action@v3
3838
id: buildx
3939
with:
4040
install: true
@@ -44,7 +44,7 @@ jobs:
4444
- name: Log into registry ${{ env.REGISTRY }}
4545
# Ensure this doesn't trigger on PR's
4646
if: github.event_name != 'pull_request'
47-
uses: docker/login-action@v2
47+
uses: docker/login-action@v3
4848
with:
4949
registry: ${{ env.REGISTRY }}
5050
username: ${{ github.actor }}
@@ -54,7 +54,7 @@ jobs:
5454
# https://github.com/docker/metadata-action
5555
- name: Extract Docker metadata
5656
id: meta
57-
uses: docker/metadata-action@v4
57+
uses: docker/metadata-action@v5
5858
with:
5959
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
6060

@@ -86,7 +86,7 @@ jobs:
8686
# https://github.com/docker/build-push-action
8787
# https://github.com/docker/build-push-action/blob/master/docs/advanced/cache.md
8888
- name: Build and push Docker image
89-
uses: docker/build-push-action@v3
89+
uses: docker/build-push-action@v6
9090
with:
9191
context: .
9292
file: ./Dockerfile.gnark-ffi

.github/workflows/docker-publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
uses: actions/checkout@v4
3232

3333
- name: Install Docker BuildX
34-
uses: docker/setup-buildx-action@v2
34+
uses: docker/setup-buildx-action@v3
3535
id: buildx
3636
with:
3737
install: true
@@ -41,7 +41,7 @@ jobs:
4141
- name: Log into registry ${{ env.REGISTRY }}
4242
# Ensure this doesn't trigger on PR's
4343
if: github.event_name != 'pull_request'
44-
uses: docker/login-action@v2
44+
uses: docker/login-action@v3
4545
with:
4646
registry: ${{ env.REGISTRY }}
4747
username: ${{ github.actor }}
@@ -51,7 +51,7 @@ jobs:
5151
# https://github.com/docker/metadata-action
5252
- name: Extract Docker metadata
5353
id: meta
54-
uses: docker/metadata-action@v4
54+
uses: docker/metadata-action@v5
5555
with:
5656
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
5757

@@ -83,7 +83,7 @@ jobs:
8383
# https://github.com/docker/build-push-action
8484
# https://github.com/docker/build-push-action/blob/master/docs/advanced/cache.md
8585
- name: Build and push Docker image
86-
uses: docker/build-push-action@v3
86+
uses: docker/build-push-action@v6
8787
with:
8888
context: ./cli/docker
8989
file: ./cli/docker/Dockerfile

.github/workflows/eval.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
./eval.sh
4242
4343
- name: Upload Benchmark as Artifact
44-
uses: actions/upload-artifact@v2
44+
uses: actions/upload-artifact@v4
4545
with:
4646
name: benchmark-results-${{ matrix.arch }}
4747
path: benchmark.csv

.github/workflows/main.yml

Lines changed: 39 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,17 @@ 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,spot=false
23+
runs-on:
24+
[
25+
runs-on,
26+
cpu=64,
27+
ram=256,
28+
family=m7i+m7a,
29+
hdd=80,
30+
image=ubuntu22-full-x64,
31+
spot=false,
32+
"run-id=${{ github.run_id }}",
33+
]
2434
env:
2535
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
2636
steps:
@@ -34,15 +44,25 @@ jobs:
3444
uses: actions-rs/cargo@v1
3545
with:
3646
command: test
37-
toolchain: nightly-2024-04-17
47+
toolchain: 1.79.0
3848
args: --release -p sp1-sdk --features native-gnark -- test_e2e_prove_plonk --nocapture
3949
env:
4050
RUSTFLAGS: -Copt-level=3 -Cdebug-assertions -Coverflow-checks=y -Cdebuginfo=0 -C target-cpu=native
4151
RUST_BACKTRACE: 1
4252

4353
plonk-docker:
4454
name: Plonk Docker
45-
runs-on: runs-on,cpu=64,ram=256,family=m7i+m7a,hdd=80,image=ubuntu22-full-x64,spot=false
55+
runs-on:
56+
[
57+
runs-on,
58+
cpu=64,
59+
ram=256,
60+
family=m7i+m7a,
61+
hdd=80,
62+
image=ubuntu22-full-x64,
63+
spot=false,
64+
"run-id=${{ github.run_id }}",
65+
]
4666
env:
4767
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
4868
steps:
@@ -56,15 +76,15 @@ jobs:
5676
uses: actions-rs/cargo@v1
5777
with:
5878
command: test
59-
toolchain: nightly-2024-04-17
79+
toolchain: 1.79.0
6080
args: --release -p sp1-sdk -- test_e2e_prove_plonk --nocapture
6181
env:
6282
RUSTFLAGS: -Copt-level=3 -Cdebug-assertions -Coverflow-checks=y -Cdebuginfo=0 -C target-cpu=native
6383
RUST_BACKTRACE: 1
6484

6585
check-branch:
6686
name: Check branch
67-
runs-on: ubuntu-latest
87+
runs-on: [ubuntu-latest, "run-id=${{ github.run_id }}"]
6888
steps:
6989
- name: Check branch
7090
if: github.head_ref != 'dev' && !startsWith(github.head_ref, 'release/') && !startsWith(github.head_ref, 'hotfix/')
@@ -74,7 +94,13 @@ jobs:
7494
7595
ssz-withdrawals:
7696
name: Example (SSZ Withdrawals)
77-
runs-on: runs-on,runner=64cpu-linux-arm64,spot=false
97+
runs-on:
98+
[
99+
runs-on,
100+
runner=64cpu-linux-arm64,
101+
spot=false,
102+
"run-id=${{ github.run_id }}",
103+
]
78104
env:
79105
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
80106
steps:
@@ -108,7 +134,13 @@ jobs:
108134
109135
tendermint:
110136
name: Example (Tendermint)
111-
runs-on: runs-on,runner=64cpu-linux-arm64,spot=false
137+
runs-on:
138+
[
139+
runs-on,
140+
runner=64cpu-linux-arm64,
141+
spot=false,
142+
"run-id=${{ github.run_id }}",
143+
]
112144
env:
113145
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
114146
steps:

.github/workflows/pr.yml

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,13 @@ concurrency:
2727
jobs:
2828
test-x86:
2929
name: Test (x86-64)
30-
runs-on: runs-on,runner=64cpu-linux-x64,spot=false
30+
runs-on:
31+
[
32+
runs-on,
33+
runner=64cpu-linux-x64,
34+
spot=false,
35+
"run-id=${{ github.run_id }}",
36+
]
3137
env:
3238
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
3339
steps:
@@ -41,14 +47,14 @@ jobs:
4147
uses: actions-rs/cargo@v1
4248
with:
4349
command: check
44-
toolchain: nightly-2024-04-17
50+
toolchain: 1.79.0
4551
args: --all-targets --all-features
4652

4753
- name: Run cargo test
4854
uses: actions-rs/cargo@v1
4955
with:
5056
command: test
51-
toolchain: nightly-2024-04-17
57+
toolchain: 1.79.0
5258
args: --release --features native-gnark
5359
env:
5460
RUSTFLAGS: -Copt-level=3 -Cdebug-assertions -Coverflow-checks=y -Cdebuginfo=0 -C target-cpu=native
@@ -58,7 +64,13 @@ jobs:
5864

5965
test-arm:
6066
name: Test (ARM)
61-
runs-on: runs-on,runner=64cpu-linux-arm64,spot=false
67+
runs-on:
68+
[
69+
runs-on,
70+
runner=64cpu-linux-arm64,
71+
spot=false,
72+
"run-id=${{ github.run_id }}",
73+
]
6274
env:
6375
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
6476
steps:
@@ -72,14 +84,14 @@ jobs:
7284
uses: actions-rs/cargo@v1
7385
with:
7486
command: check
75-
toolchain: nightly-2024-04-17
87+
toolchain: 1.79.0
7688
args: --all-targets --all-features
7789

7890
- name: Run cargo test
7991
uses: actions-rs/cargo@v1
8092
with:
8193
command: test
82-
toolchain: nightly-2024-04-17
94+
toolchain: 1.79.0
8395
args: --release --features native-gnark
8496
env:
8597
RUSTFLAGS: -Copt-level=3 -Cdebug-assertions -Coverflow-checks=y -Cdebuginfo=0 -C target-cpu=native
@@ -89,7 +101,7 @@ jobs:
89101

90102
lint:
91103
name: Formatting & Clippy
92-
runs-on: runs-on,runner=8cpu-linux-x64
104+
runs-on: [runs-on, runner=8cpu-linux-x64, "run-id=${{ github.run_id }}"]
93105
env:
94106
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
95107
steps:
@@ -117,7 +129,7 @@ jobs:
117129

118130
examples:
119131
name: Examples
120-
runs-on: runs-on,runner=8cpu-linux-x64
132+
runs-on: [runs-on, runner=8cpu-linux-x64, "run-id=${{ github.run_id }}"]
121133
env:
122134
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
123135
steps:
@@ -147,7 +159,7 @@ jobs:
147159
148160
cli:
149161
name: CLI
150-
runs-on: runs-on,runner=8cpu-linux-x64
162+
runs-on: [runs-on, runner=8cpu-linux-x64, "run-id=${{ github.run_id }}"]
151163
env:
152164
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
153165
steps:

.github/workflows/release.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ env:
1616
jobs:
1717
prepare:
1818
name: Prepare release
19-
runs-on: runs-on,runner=8cpu-linux-x64
19+
runs-on: [runs-on, runner=8cpu-linux-x64, "run-id=${{ github.run_id }}"]
2020
timeout-minutes: 30
2121
outputs:
2222
tag_name: ${{ steps.release_info.outputs.tag_name }}
@@ -32,7 +32,7 @@ jobs:
3232
with:
3333
pull_token: ${{ secrets.PULL_TOKEN }}
3434

35-
# If it's a nightly release, tag with the release time. If the tag is `main`, we want to use
35+
# If it's a nightly release, tag with the release time. If the tag is `main`, we want to use
3636
# `latest` as the tag name. Else, use the tag name as is.
3737
- name: Compute release name and tag
3838
id: release_info
@@ -117,7 +117,7 @@ jobs:
117117
id: rustc-toolchain
118118
uses: actions-rs/toolchain@v1
119119
with:
120-
toolchain: nightly-2024-04-17
120+
toolchain: 1.79.0
121121
profile: minimal
122122
override: true
123123
targets: ${{ matrix.target }}
@@ -126,12 +126,12 @@ jobs:
126126
with:
127127
key: ${{ matrix.target }}
128128
cache-on-failure: true
129-
129+
130130
- name: Install go
131131
uses: actions/setup-go@v5
132132
with:
133-
go-version: '^1.22.1'
134-
133+
go-version: "^1.22.1"
134+
135135
- name: Check go installation
136136
run: |
137137
go version
@@ -201,7 +201,7 @@ jobs:
201201
202202
# Creates the release for this specific version
203203
- name: Create release
204-
uses: softprops/action-gh-release@v1
204+
uses: softprops/action-gh-release@v2
205205
with:
206206
name: ${{ needs.prepare.outputs.release_name }}
207207
tag_name: ${{ needs.prepare.outputs.tag_name }}
@@ -215,7 +215,7 @@ jobs:
215215
# tagged `nightly` for compatibility with `sp1up`
216216
- name: Update nightly release
217217
if: ${{ env.IS_NIGHTLY }}
218-
uses: softprops/action-gh-release@v1
218+
uses: softprops/action-gh-release@v2
219219
with:
220220
name: "Nightly"
221221
tag_name: "nightly"
@@ -265,4 +265,4 @@ jobs:
265265
${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
266266
with:
267267
update_existing: true
268-
filename: .github/RELEASE_FAILURE_ISSUE_TEMPLATE.md
268+
filename: .github/RELEASE_FAILURE_ISSUE_TEMPLATE.md

.vscode/settings.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
// "examples/io/script/Cargo.toml",
3131
// "examples/json/program/Cargo.toml",
3232
// "examples/json/script/Cargo.toml",
33+
// "examples/patch-testing/program/Cargo.toml",
34+
// "examples/patch-testing/script/Cargo.toml",
3335
// "examples/regex/program/Cargo.toml",
3436
// "examples/regex/script/Cargo.toml",
3537
// "examples/rsa/program/Cargo.toml",

0 commit comments

Comments
 (0)