Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scroll dev 0914 #11

Closed
wants to merge 394 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
394 commits
Select commit Hold shift + click to select a range
55f0b92
add debug feature to prover crate
lispc Sep 6, 2024
3c86e33
Merge branch 'tamir/v1.3.0-rc2' into kevjue/phase_1_improvements
kevjue Sep 6, 2024
ffba4c3
big cleanup of the local memory for syscalls
kevjue Sep 6, 2024
34b3b81
minimize diff
kevjue Sep 6, 2024
262cae5
more cleanup
kevjue Sep 6, 2024
02e505a
cleaned up generate trace/dependencies for local memory table
kevjue Sep 6, 2024
a7c4564
generate dependencies for all chips
kevjue Sep 7, 2024
bd600e4
merged v1.3.0-rc2
kevjue Sep 7, 2024
ed06156
fix merge issue
kevjue Sep 7, 2024
a251d6b
fixed unit tests and formatting
kevjue Sep 7, 2024
fd11b44
restore the examples
kevjue Sep 7, 2024
b90a7f8
fix crates/core/machine/src/riscv/mod.rs
lispc Sep 8, 2024
8db9e57
fix CostEstimator
lispc Sep 8, 2024
6c80f61
check for byte multiplicies in the rust verifier
kevjue Sep 8, 2024
39670dd
added byte multiplicies overflow check in recursion circuit
kevjue Sep 8, 2024
6d3e066
Merge remote-tracking branch 'origin/tamir/v1.3.0-rc2' into scroll-de…
lispc Sep 9, 2024
41be899
1.3.0-rc3
lispc Sep 9, 2024
cb77447
cleanup
kevjue Sep 9, 2024
4d77bc1
Merge branch 'tamir/v1.3.0-rc2' into kevjue/phase_1_improvements
kevjue Sep 9, 2024
3b8c445
some cleanup
kevjue Sep 10, 2024
b2f871b
Merge branch 'tamir/v1.3.0-rc2' into kevjue/phase_1_improvements
kevjue Sep 10, 2024
f72c35f
feat: generate dependencies cleanup (#1498)
kevjue Sep 14, 2024
7ed65a2
some clean up
kevjue Sep 14, 2024
175afa0
more cleanup
kevjue Sep 14, 2024
13403cf
Merge remote-tracking branch 'origin/kevjue/phase_1_improvements' int…
lispc Sep 14, 2024
4ece415
last clippy issue
kevjue Sep 14, 2024
bf69f54
some cleanup
kevjue Sep 14, 2024
7fa84e7
build
lispc Sep 14, 2024
9b9b512
clean tests
lispc Sep 14, 2024
d8e89a4
Merge remote-tracking branch 'scroll/kevjue/phase_1_improvements' int…
lispc Sep 14, 2024
ca95892
refactor: removed use of sudo + docker from cuda crate
yourbuddyconner Sep 18, 2024
2e8b0a8
compiler nits
yourbuddyconner Sep 18, 2024
80dd262
Merge remote-tracking branch 'origin/tamir/v1.3.0-rc2' into scroll-de…
lispc Sep 18, 2024
4ed9f05
refactor: removed use of sudo + docker from cuda crate (#1517)
yourbuddyconner Sep 19, 2024
14567af
fix: `copy_elf_from_output_dir` binary name (#1526)
ratankaliani Sep 20, 2024
8e82b81
feat: Add `cycle-tracking` example with multiple binaries (#1529)
ratankaliani Sep 20, 2024
44d17cf
Merge remote-tracking branch 'origin/tamir/v1.3.0-rc2' into scroll-de…
lispc Sep 21, 2024
613a7d7
Merge remote-tracking branch 'origin/tamir/v1.3.0-rc2' into scroll-de…
lispc Sep 22, 2024
e9684f0
change syscall code
lispc Sep 23, 2024
768a3e4
syscall lint and fix
lispc Sep 23, 2024
db3743a
update memcpy.s
lightsing Sep 23, 2024
e59735a
Merge remote-tracking branch 'scroll/scroll-dev-0914' into scroll-dev…
lightsing Sep 23, 2024
cbd2f1a
fix: local cumulative sum check in recursion (#1531)
kevjue Sep 23, 2024
09fb4c3
Merge branch 'scroll-v1.3.0-rc2' into scroll-dev-0914
lispc Sep 23, 2024
0b1cb35
update memcpy.s
lightsing Sep 23, 2024
094f4c5
Merge remote-tracking branch 'scroll/scroll-dev-0914' into scroll-dev…
lightsing Sep 23, 2024
64e306b
try fix nonce
lispc Sep 23, 2024
a6c18e4
Merge branch 'scroll-dev-0914' of github.com:scroll-tech/sp1 into scr…
lispc Sep 23, 2024
87be977
improve err msg
lispc Sep 23, 2024
25cdde5
fix: rust 1.81 toolchain build issue (#1534)
xJonathanLEI Sep 23, 2024
35eb54f
paged memory for uninitialized_memory
ctian1 Sep 21, 2024
62d7d74
cleanup
ctian1 Sep 23, 2024
3825e38
Merge remote-tracking branch 'origin/dev' into tamir/v1.3.0-rc2
tamirhemo Sep 24, 2024
faf120f
doc
ctian1 Sep 24, 2024
fca5db0
fix: uninitialized_memory hashmap issue (#1536)
ctian1 Sep 24, 2024
66a6e7e
merge conflict
tamirhemo Sep 24, 2024
2593328
Merge remote-tracking branch 'origin/tamir/v1.3.0-rc2' into scroll-de…
lispc Sep 25, 2024
d461dd7
ci: test toolchain installation (#1539)
xJonathanLEI Sep 25, 2024
40f62d4
docs: substrate bn (#1540)
ratankaliani Sep 25, 2024
3bf0cd2
refactor: move `SP1PublicValues` to `sp1-primitives` (#1546)
xJonathanLEI Sep 26, 2024
29ace32
perf: remove unnecessary materializations of matrix views (#1547)
erabinov Sep 26, 2024
21655e9
chore: implement raw() for groth16 proof (#1543)
mattstam Sep 26, 2024
c9b305b
chore: replace `raw()` with `bytes()` in fibonacci example (#1549)
xJonathanLEI Sep 26, 2024
18d045f
feat: public value validity assertions (#1532)
tamirhemo Sep 26, 2024
998e1b6
merge conflict
tamirhemo Sep 26, 2024
56210b0
fix error
tamirhemo Sep 26, 2024
2cc68f0
feat: merge upstream changes (#1550)
tamirhemo Sep 27, 2024
c9547f5
Merge remote-tracking branch 'origin/tamir/v1.3.0-rc2' into scroll-de…
lispc Sep 27, 2024
41c44a4
feat: fixed vks in root (#1551)
tamirhemo Sep 27, 2024
36d04d6
feat: root and deferred (#1552)
tamirhemo Sep 27, 2024
5fffc38
fix allowed heights
tamirhemo Sep 27, 2024
4cc0c9b
make merkle proofs
tamirhemo Sep 27, 2024
19f34b0
fix: check with `is_first` instead of `is_last` in exp reverse bits c…
erabinov Sep 27, 2024
6cb19b3
Merge remote-tracking branch 'origin/dev' into tamir/v1.3.0-rc2
tamirhemo Sep 27, 2024
6317ffb
enumerate shapes
tamirhemo Sep 27, 2024
77f8c5f
feat: felts to var optimization (#1553)
tamirhemo Sep 27, 2024
b1da315
fix: gnark ffi fixes (#1554)
tamirhemo Sep 27, 2024
7e45758
fix: conversions and bits (#1555)
tamirhemo Sep 27, 2024
795f177
reduce const degree
tamirhemo Sep 27, 2024
4736a16
docs: why-use-sp1.md
lsquaredleland Sep 27, 2024
8163516
fix: proof flow for v3 (#1556)
tamirhemo Sep 28, 2024
5086f7c
chore: upgrade Rust toolchain to 1.81.0 (#1559)
xJonathanLEI Sep 28, 2024
96567e1
feat: remove exp reverse bits in wrap (#1558)
tamirhemo Sep 28, 2024
8b2fb66
docs: why-use-sp1.md (#1557)
lsquaredleland Sep 30, 2024
11b75da
fix: gnark-ffi Dockerfile caching (#1564)
xJonathanLEI Sep 30, 2024
d8ee070
merge dev
tamirhemo Sep 30, 2024
0307d29
merge dev again
tamirhemo Sep 30, 2024
cf9f265
chore: merge dev (#1570)
tamirhemo Sep 30, 2024
4621d03
chore: cleanup (#1569)
tamirhemo Sep 30, 2024
a183772
fix: shapes fixing (#1574)
tamirhemo Sep 30, 2024
7fc5975
fix: multi field rate and serialization (#1575)
tamirhemo Sep 30, 2024
682942d
fix: execution shard initialization (#1576)
tamirhemo Sep 30, 2024
1391a37
fix: exit code (#1577)
tamirhemo Sep 30, 2024
6aa598e
fix: vk root in deferred (#1578)
tamirhemo Oct 1, 2024
b74b022
exit code
tamirhemo Oct 1, 2024
bc187d5
core exit code
tamirhemo Oct 1, 2024
9f391bd
rm from compress
tamirhemo Oct 1, 2024
cc2eb40
fix: more shard options (#1586)
tamirhemo Oct 1, 2024
3947eee
fix: `sp1-recursion-gnark-ffi` rebuilds unnecessarily (#1583)
xJonathanLEI Oct 2, 2024
85fca5e
fix: syscall chip in shards (#1582)
tamirhemo Oct 2, 2024
ac996cb
chore: merge dev (#1591)
tamirhemo Oct 2, 2024
351e7d9
Revert "chore: merge dev (#1591)"
tamirhemo Oct 2, 2024
ebd04e8
Revert "chore: merge dev" (#1592)
tamirhemo Oct 2, 2024
9204e1f
Merge remote-tracking branch 'origin/dev' into tamir/v1.3.0-rc2
tamirhemo Oct 2, 2024
4d7a6a1
feat: BabyBear Optimization in GNARK (#1587)
rkm0959 Oct 2, 2024
62ff82c
chore: include all examples in the root workspace (#1566)
xJonathanLEI Oct 2, 2024
c41fb8b
merge dev
tamirhemo Oct 2, 2024
3fbdffa
chore: cleanup (#1593)
tamirhemo Oct 2, 2024
142c005
chore: clippy without `debug_assertions` (#1598)
tamirhemo Oct 3, 2024
c1eabe3
chore: remove non-existent feature (#1590)
xJonathanLEI Oct 3, 2024
6861f69
chore: remove individual test workspaces (#1597)
xJonathanLEI Oct 3, 2024
a8db6b1
fix: `multi_scalar_multiplication` (#1542)
ratankaliani Oct 3, 2024
5c69f3b
docs: update (#1585)
lsquaredleland Oct 3, 2024
4b8306a
chore(sdk): update prost and twirp to 0.13 (#1601)
mattstam Oct 3, 2024
778f93d
feat: precompile shapes (#1600)
tamirhemo Oct 3, 2024
4f15504
feat: runtime opts (#1579)
ctian1 Oct 3, 2024
17a604f
merge conflicts
tamirhemo Oct 3, 2024
93fc1b1
update patch
tamirhemo Oct 3, 2024
b0aed08
update
tamirhemo Oct 3, 2024
65bc32d
fix tests
tamirhemo Oct 4, 2024
5d0a056
clippy
tamirhemo Oct 4, 2024
92eec40
unwind
tamirhemo Oct 4, 2024
d20b519
Merge remote-tracking branch 'origin/tamir/v1.3.0-rc2' into tamir/cho…
tamirhemo Oct 4, 2024
30ed1dc
trust in cursor
tamirhemo Oct 4, 2024
4f766da
feat: trusted setup support (#1538)
jtguibas Oct 4, 2024
77e14cb
tweak build_vk_map
ctian1 Oct 4, 2024
f3245c9
chore: merge dev (#1603)
tamirhemo Oct 4, 2024
d57d16d
avoid poison error
ctian1 Oct 4, 2024
0b3acaf
fix
ctian1 Oct 4, 2024
e3d722f
better serialization
tamirhemo Oct 4, 2024
9f3f939
shrink
tamirhemo Oct 4, 2024
675680a
better messages
tamirhemo Oct 4, 2024
bddb167
reflect vks
tamirhemo Oct 4, 2024
d67af88
root assertion
tamirhemo Oct 4, 2024
2c75223
new elfs
tamirhemo Oct 4, 2024
413c0a0
no dupes
tamirhemo Oct 4, 2024
705ec97
fix
tamirhemo Oct 4, 2024
4d7b94f
build
tamirhemo Oct 4, 2024
4a432f2
chore: Fix typos in documentation (#1512)
cypherpepe Oct 4, 2024
75fa677
fix: `weierstrass_add` test (#1605)
ratankaliani Oct 4, 2024
0070a84
tweak
ctian1 Oct 4, 2024
17a1371
add more
tamirhemo Oct 4, 2024
c451b59
add flag
tamirhemo Oct 4, 2024
10ebf6c
fix(docs): branch on patched bls12_381 (#1596)
invocamanman Oct 4, 2024
667b658
tests and no filter
tamirhemo Oct 4, 2024
f606408
finalize shapes
tamirhemo Oct 4, 2024
49d792d
Merge remote-tracking branch 'origin/tamir/v1.3.0-rc2' into scroll-de…
lispc Oct 5, 2024
cf84973
Merge remote-tracking branch 'origin/tamir/v1.3.0-rc2' into scroll-de…
lispc Oct 5, 2024
4c14c55
revert memcpy.s
lispc Oct 5, 2024
442104c
tmp: many verbose log
lispc Oct 5, 2024
3714713
light map
tamirhemo Oct 6, 2024
4a375c5
cleanup
tamirhemo Oct 6, 2024
31f9d47
Revert "finalize shapes"
lispc Oct 6, 2024
368a60c
Revert "tests and no filter"
lispc Oct 6, 2024
7741254
Revert "add flag"
lispc Oct 6, 2024
939c9d4
Merge remote-tracking branch 'origin/tamir/v1.3.0-rc2' into scroll-de…
lispc Oct 6, 2024
ebcddaa
shard size
tamirhemo Oct 6, 2024
c7afd50
deferred
tamirhemo Oct 6, 2024
f98f148
deferred new
tamirhemo Oct 6, 2024
b840b42
cleanup
tamirhemo Oct 6, 2024
8cda03c
comment
tamirhemo Oct 7, 2024
ae2205e
Merge remote-tracking branch 'origin/dev' into tamir/v1.3.0-rc2
tamirhemo Oct 7, 2024
516b2f3
capital letters
tamirhemo Oct 7, 2024
29f2cec
cancel 1 env
tamirhemo Oct 7, 2024
171be81
feat: sp1 testing suite (#1563)
jtguibas Oct 7, 2024
39f3051
network job pause
tamirhemo Oct 7, 2024
8c1ee67
run-suite
tamirhemo Oct 7, 2024
f2b963d
try (run-suite)
tamirhemo Oct 7, 2024
ef3b637
just run
tamirhemo Oct 7, 2024
ea89540
run again
tamirhemo Oct 7, 2024
d7ac412
shape in tests
tamirhemo Oct 7, 2024
624ed78
only blobstream
tamirhemo Oct 7, 2024
a179bbb
error handeling
tamirhemo Oct 7, 2024
de0f9b6
fix split threshold
tamirhemo Oct 7, 2024
e5443d4
better error
tamirhemo Oct 7, 2024
f44aad0
fix tests
tamirhemo Oct 7, 2024
3dbf0b6
rm network
tamirhemo Oct 7, 2024
1693762
update image
tamirhemo Oct 7, 2024
6642fba
rerun
tamirhemo Oct 7, 2024
dcd99a3
no cuda
tamirhemo Oct 7, 2024
1c1f84d
feat: only call entrypoint in zkvm (#1611)
xJonathanLEI Oct 7, 2024
15e5db7
feat: artifacts (#1614)
tamirhemo Oct 8, 2024
7325250
Merge remote-tracking branch 'origin/tamir/v1.3.0-rc2' into scroll-de…
lispc Oct 8, 2024
c989dd0
feat: g16/plonk for network (#1617)
jtguibas Oct 8, 2024
93568dc
small tweaks (#1618)
jtguibas Oct 8, 2024
c82798d
chore: tweaks (#1619)
jtguibas Oct 8, 2024
faf18c4
check shrink shaope
tamirhemo Oct 8, 2024
d706145
feat(sdk): network-v2 (#1607)
mattstam Oct 8, 2024
94a3a0d
fix shrink
tamirhemo Oct 8, 2024
6dde7df
update cuda img
jtguibas Oct 8, 2024
26aa833
workflow
jtguibas Oct 8, 2024
12e7cac
update circuit version
jtguibas Oct 8, 2024
7fe8cca
fix
umadayal Oct 8, 2024
805bbd6
uncomment bn254
umadayal Oct 8, 2024
24dd5e1
fail fast: false
umadayal Oct 8, 2024
e64fe1c
makefile
umadayal Oct 8, 2024
b2b47e6
updated cuda image
jtguibas Oct 8, 2024
e02bbd9
Merge branch 'tamir/v1.3.0-rc2' of github.com:succinctlabs/sp1 into t…
jtguibas Oct 8, 2024
3a9babf
more op succinct blocks
jtguibas Oct 8, 2024
168140d
chore: cargo machete (#1606)
ratankaliani Oct 8, 2024
9006808
new shrink shape
tamirhemo Oct 8, 2024
ed9a18f
new vk map
tamirhemo Oct 8, 2024
a16b004
shrink
tamirhemo Oct 8, 2024
a4abe54
try
tamirhemo Oct 8, 2024
dd6b43e
back to original scripts
tamirhemo Oct 8, 2024
181bb7c
switch to new p3
jtguibas Oct 8, 2024
9c8b6ad
cuda image
jtguibas Oct 8, 2024
d92f680
rc3
umadayal Oct 8, 2024
e6e4336
Merge remote-tracking branch 'origin/tamir/v1.3.0-rc2' into scroll-de…
lispc Oct 9, 2024
a35889a
build
lispc Oct 9, 2024
e7cfe16
new shape config
tamirhemo Oct 9, 2024
d5fb320
feat: shape artifacts in s3 (#1621)
jtguibas Oct 9, 2024
dd8cd6d
shape config
tamirhemo Oct 9, 2024
cae2019
verify vk false for cuda
jtguibas Oct 9, 2024
f4b856b
Merge remote-tracking branch 'origin/tamir/v1.3.0-rc2' into scroll-de…
lispc Oct 9, 2024
6911fdd
enable debug
lispc Oct 9, 2024
146079e
finish unstaged changes
jtguibas Oct 9, 2024
9ac4162
new shapes
jtguibas Oct 9, 2024
7dd6c85
hm
jtguibas Oct 9, 2024
002e00d
get rid of verify vk
jtguibas Oct 9, 2024
01a7581
update gpu image with new shapes
jtguibas Oct 9, 2024
069cc25
no vk + no fixed shapes
umadayal Oct 9, 2024
28a41a2
Merge remote-tracking branch 'origin/tamir/v1.3.0-rc2' into scroll-de…
lispc Oct 9, 2024
25ee7f2
hm
jtguibas Oct 9, 2024
535764d
Merge branch 'tamir/v1.3.0-rc2' of github.com:succinctlabs/sp1 into t…
jtguibas Oct 9, 2024
3a04509
hm
jtguibas Oct 9, 2024
7952bac
update cuda image
umadayal Oct 9, 2024
0dbbb8d
hm
umadayal Oct 9, 2024
a5ae1c8
fix memcpy clk
lispc Oct 9, 2024
e80b093
hmmm
jtguibas Oct 9, 2024
f0a44f5
Merge branch 'tamir/v1.3.0-rc2' of github.com:succinctlabs/sp1 into t…
jtguibas Oct 9, 2024
cf2efb8
syscall local
lispc Oct 9, 2024
12d7eb2
rc3
jtguibas Oct 9, 2024
c9c800b
use faster builder
jtguibas Oct 9, 2024
d2610cf
fix sp1 versions
jtguibas Oct 9, 2024
e2cc4bc
x86
jtguibas Oct 9, 2024
254c535
simulate arm in x86
jtguibas Oct 9, 2024
456c1ee
remove arm
jtguibas Oct 9, 2024
c69208d
run main ci on branch
jtguibas Oct 9, 2024
34bf38e
merge dev
jtguibas Oct 9, 2024
023ec2d
fix bn254 mul clk bug.. wtf
lispc Oct 9, 2024
cc25584
update docker build system
jtguibas Oct 9, 2024
ae65e88
new workflow
jtguibas Oct 9, 2024
c587ac5
specific platform
jtguibas Oct 9, 2024
ffdcb60
create manifest
jtguibas Oct 9, 2024
1fc5916
fix ci
jtguibas Oct 9, 2024
8b92d54
add print statement
jtguibas Oct 9, 2024
4834f5c
cargo lock
umadayal Oct 9, 2024
3991008
Revert "tmp: many verbose log"
lispc Oct 10, 2024
4ba5515
Merge remote-tracking branch 'origin/tamir/v1.3.0-rc2' into scroll-de…
lispc Oct 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
61 changes: 58 additions & 3 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ inputs:
pull_token:
description: "Token to use for private repo access"
required: true
setup_gcc:
description: "Whether to setup GCC or not"
required: false
default: 'true'
setup_aws_cli:
description: "Whether to install AWS CLI or not"
required: false
default: 'true'
runs:
using: "composite"
steps:
Expand All @@ -22,11 +30,41 @@ runs:
shell: bash
run: go version

- name: Check GCC version
id: check-gcc
shell: bash
run: |
if command -v gcc &> /dev/null; then
echo "gcc_exists=true" >> $GITHUB_OUTPUT
echo "gcc_version=$(gcc --version | head -n1 | awk '{print $NF}')" >> $GITHUB_OUTPUT
else
echo "gcc_exists=false" >> $GITHUB_OUTPUT
fi

- name: Setup GCC
uses: Dup4/actions-setup-gcc@v1
if: inputs.setup_gcc == 'true' && steps.check-gcc.outputs.gcc_exists != 'true'
with:
version: latest

- uses: actions/setup-python@v5
with:
python-version: '3.10'

- name: Install AWS CLI v2
if: inputs.setup_aws_cli == 'true'
shell: bash
run: |
if ! command -v aws &> /dev/null; then
echo "AWS CLI not found. Installing..."
python3 -m pip install --user awscli
echo "$HOME/.local/bin" >> $GITHUB_PATH
else
echo "AWS CLI is already installed."
fi
export PATH="$HOME/.local/bin:$PATH"
aws --version

- name: rust-cache
uses: actions/cache@v3
with:
Expand All @@ -37,11 +75,28 @@ runs:
~/.cargo/git/db/
target/
~/.rustup/
key: rust-1.79.0-${{ hashFiles('**/Cargo.toml') }}
restore-keys: rust-1.79.0-
key: rust-1.81.0-${{ hashFiles('**/Cargo.toml') }}
restore-keys: rust-1.81.0-

- name: Setup toolchain
id: rustc-toolchain
shell: bash
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain 1.79.0 -y
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain 1.81.0 -y
. "$HOME/.cargo/env"
echo "$HOME/.cargo/bin" >> $GITHUB_PATH

# install pkg-config and openssl
- name: Install pkg-config and openssl
shell: bash
run: |
if ! dpkg -s pkg-config libssl-dev &> /dev/null; then
echo "pkg-config and/or libssl-dev not found. Installing..."
sudo apt-get update
sudo apt-get install -y pkg-config libssl-dev
else
echo "pkg-config and libssl-dev are already installed."
fi

- name: Set up Docker
uses: docker/setup-buildx-action@v3
8 changes: 0 additions & 8 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
version: 2
updates:
- package-ecosystem: "cargo"
directory: "/"
schedule:
interval: "weekly"
target-branch: "dev"
ignore:
- dependency-name: "axum"
versions: ["> 0.7.4"]
- package-ecosystem: "docker"
directory: "/crates/cli/docker"
schedule:
Expand Down
17 changes: 17 additions & 0 deletions .github/runs-on.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
images:
nvidia-linux:
platform: "linux"
arch: "x64"
ami: "ami-0a63dc9cb9e934ba3"
owner: "421253708207"

dlami-x64:
platform: "linux"
arch: "x64"
owner: "898082745236" # AWS
name: "Deep Learning Base OSS Nvidia Driver GPU AMI (Ubuntu 22.04)*"

runners:
gpu-nvidia:
family: ["g6.4xlarge"]
image: dlami-x64
2 changes: 1 addition & 1 deletion .github/workflows/docker-gnark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ jobs:
SP1_GNARK_IMAGE: sp1-gnark
with:
command: test
toolchain: 1.79.0
toolchain: 1.81.0
args: --release -p sp1-prover -- --exact tests::test_e2e
118 changes: 59 additions & 59 deletions .github/workflows/docker-publish-gnark.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Source: https://raw.githubusercontent.com/foundry-rs/foundry/master/.github/workflows/docker-publish.yml
name: docker-gnark

on:
Expand All @@ -7,7 +6,6 @@ on:
- "v*.*.*"
schedule:
- cron: "0 0 * * *"
# Trigger without any parameters a proactive rebuild
workflow_dispatch:
inputs:
tags:
Expand All @@ -20,83 +18,85 @@ env:
IMAGE_NAME: succinctlabs/sp1-gnark

jobs:
container:
runs-on: ubuntu-latest
# https://docs.github.com/en/actions/reference/authentication-in-a-workflow
build-amd64:
runs-on: [runs-on, runner=64cpu-linux-x64, spot=false, "run-id=${{ github.run_id }}"]
permissions:
id-token: write
packages: write
contents: read
timeout-minutes: 120
steps:
- name: Checkout repository
id: checkout
uses: actions/checkout@v4

- name: Install Docker BuildX
- name: Set up Docker BuildX
uses: docker/setup-buildx-action@v3
id: buildx
- name: Log into registry ${{ env.REGISTRY }}
uses: docker/login-action@v3
with:
install: true
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push AMD64 image
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile.gnark-ffi
platforms: linux/amd64
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}-amd64
cache-from: type=gha
cache-to: type=gha,mode=max

# Login against a Docker registry except on PR
# https://github.com/docker/login-action
build-arm64:
runs-on: [runs-on, runner=64cpu-linux-arm64, spot=false, "run-id=${{ github.run_id }}"]
permissions:
id-token: write
packages: write
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker BuildX
uses: docker/setup-buildx-action@v3
- name: Log into registry ${{ env.REGISTRY }}
# Ensure this doesn't trigger on PR's
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# Extract metadata (tags, labels) for Docker
# https://github.com/docker/metadata-action
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v5
- name: Build and push ARM64 image
uses: docker/build-push-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
context: .
file: ./Dockerfile.gnark-ffi
platforms: linux/arm64
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}-arm64
cache-from: type=gha
cache-to: type=gha,mode=max

# Creates an additional 'latest' or 'nightly' tag
# If the job is triggered via cron schedule, tag nightly and nightly-{SHA}
# If the job is triggered via workflow dispatch and on a master branch, tag branch and latest
# Otherwise, just tag as the branch name
- name: Finalize Docker Metadata
id: docker_tagging
create-manifest:
needs: [build-amd64, build-arm64]
runs-on: ubuntu-latest
steps:
- name: Log into registry ${{ env.REGISTRY }}
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Create and push manifest
run: |
TAGS=""
if [[ "${{ github.event_name }}" == 'workflow_dispatch' ]]; then
echo "manual trigger from workflow_dispatch, assigning tag ${{ github.event.inputs.tags }}"
echo "docker_tags=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.event.inputs.tags }}" >> $GITHUB_OUTPUT
TAGS="${{ github.event.inputs.tags }}"
elif [[ "${{ github.event_name }}" == 'schedule' ]]; then
echo "cron trigger, assigning nightly tag"
echo "docker_tags=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:nightly,${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:nightly-${GITHUB_SHA}" >> $GITHUB_OUTPUT
TAGS="nightly nightly-${{ github.sha }}"
else
echo "Neither scheduled nor manual release from main branch. Just tagging as branch name"
echo "docker_tags=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${GITHUB_REF##*/}" >> $GITHUB_OUTPUT
TAGS="${GITHUB_REF##*/}"
fi

# Log docker metadata to explicitly know what is being pushed
- name: Inspect Docker Metadata
run: |
echo "TAGS -> ${{ steps.docker_tagging.outputs.docker_tags }}"
echo "LABELS -> ${{ steps.meta.outputs.labels }}"

# Build and push Docker image
# https://github.com/docker/build-push-action
# https://github.com/docker/build-push-action/blob/master/docs/advanced/cache.md
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile.gnark-ffi
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.docker_tagging.outputs.docker_tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: |
BUILDTIME=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }}
VERSION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}
REVISION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.revision'] }}

for TAG in $TAGS; do
docker buildx imagetools create -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:$TAG \
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}-amd64 \
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}-arm64
done
47 changes: 42 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
pull_request:
branches:
- main
- tamir/v1.3.0-rc2
paths:
- "crates/**"
- "Cargo.toml"
Expand Down Expand Up @@ -40,7 +41,7 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: test
toolchain: 1.79.0
toolchain: 1.81.0
args: --release -p sp1-sdk --features native-gnark -- test_e2e_prove_plonk --nocapture
env:
RUSTFLAGS: -Copt-level=3 -Cdebug-assertions -Coverflow-checks=y -Cdebuginfo=0 -C target-cpu=native
Expand Down Expand Up @@ -72,7 +73,7 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: test
toolchain: 1.79.0
toolchain: 1.81.0
args: --release -p sp1-sdk -- test_e2e_prove_plonk --nocapture
env:
RUSTFLAGS: -Copt-level=3 -Cdebug-assertions -Coverflow-checks=y -Cdebuginfo=0 -C target-cpu=native
Expand Down Expand Up @@ -128,6 +129,42 @@ jobs:
cargo add sp1-sdk --path $GITHUB_WORKSPACE/crates/sdk
SP1_DEV=1 RUST_LOG=info cargo run --release

cycle-tracking:
name: Example (Cycle Tracking)
runs-on:
[
runs-on,
runner=64cpu-linux-arm64,
spot=false,
"run-id=${{ github.run_id }}",
]
env:
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
steps:
- name: Checkout sources
uses: actions/checkout@v4

- name: Setup CI
uses: ./.github/actions/setup

- name: Install SP1 toolchain
run: |
curl -L https://sp1.succinct.xyz | bash
~/.sp1/bin/sp1up
~/.sp1/bin/cargo-prove prove --version

- name: Install SP1 CLI
run: |
cd crates/cli
cargo install --force --locked --path .
cd ~

- name: Run script
run: |
cd examples/cycle-tracking/script
cargo add sp1-sdk --path $GITHUB_WORKSPACE/crates/sdk
SP1_DEV=1 RUST_LOG=info cargo run --release

tendermint:
name: Example (Tendermint)
runs-on:
Expand Down Expand Up @@ -184,14 +221,14 @@ jobs:
~/.cargo/git/db/
target/
~/.rustup/
key: rust-1.79.0-${{ hashFiles('**/Cargo.toml') }}
restore-keys: rust-1.79.0-
key: rust-1.81.0-${{ hashFiles('**/Cargo.toml') }}
restore-keys: rust-1.81.0-

- name: Setup toolchain
id: rustc-toolchain
shell: bash
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain 1.79.0 -y
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain 1.81.0 -y

- name: Run script
run: |
Expand Down
Loading
Loading