Skip to content

Commit f0f4331

Browse files
authored
Feat: Download release from s3 (#58)
* download a release from s3 (script) * fix: dir from s3 * copy release assets, prepare for integration tests * use wget instead of aws
1 parent 4834592 commit f0f4331

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ export RUST_BACKTRACE
77
RUST_LOG ?= off,scroll_zkvm_integration=debug,scroll_zkvm_verifier=debug,scroll_zkvm_prover=debug,openvm_circuit=debug
88
export RUST_LOG
99

10+
download-release:
11+
sh download-release.sh
12+
1013
fmt:
1114
@cargo fmt --all
1215

download-release.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
# release version
4+
if [ -z "${SCROLL_ZKVM_VERSION}" ]; then
5+
echo "SCROLL_ZKVM_VERSION not set"
6+
exit 1
7+
fi
8+
9+
# chunk-circuit exe
10+
wget https://circuit-release.s3.us-west-2.amazonaws.com/scroll-zkvm/releases/$SCROLL_ZKVM_VERSION/chunk/app.vmexe -O crates/circuits/chunk-circuit/openvm/app.vmexe
11+
12+
# batch-circuit exe
13+
wget https://circuit-release.s3.us-west-2.amazonaws.com/scroll-zkvm/releases/$SCROLL_ZKVM_VERSION/batch/app.vmexe -O crates/circuits/batch-circuit/openvm/app.vmexe
14+
15+
# bundle-circuit exe
16+
wget https://circuit-release.s3.us-west-2.amazonaws.com/scroll-zkvm/releases/$SCROLL_ZKVM_VERSION/bundle/app.vmexe -O crates/circuits/bundle-circuit/openvm/app.vmexe

release.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1+
#!/bin/bash
2+
13
# release version
2-
if [[ -z "${SCROLL_ZKVM_VERSION}" ]]; then
4+
if [ -z "${SCROLL_ZKVM_VERSION}" ]; then
35
echo "SCROLL_ZKVM_VERSION not set"
46
exit 1
57
else
68
DIR_OUTPUT="releases/${SCROLL_ZKVM_VERSION}"
79
fi
810

911
# directory to read assets from
10-
if [[ -z "${SCROLL_ZKVM_TESTRUN_DIR}" ]]; then
12+
if [ -z "${SCROLL_ZKVM_TESTRUN_DIR}" ]; then
1113
echo "SCROLL_ZKVM_TESTRUN_DIR not set"
1214
exit 1
1315
else

0 commit comments

Comments
 (0)