Skip to content

Commit 5ca9e05

Browse files
authored
feat: update zisk to v0.18.0 (#367)
1 parent cc9fb07 commit 5ca9e05

55 files changed

Lines changed: 1809 additions & 2517 deletions

Some content is hidden

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

.github/scripts/build-image.sh

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ IMAGE_REGISTRY=""
99
BUILD_BASE=false
1010
BUILD_COMPILER=false
1111
BUILD_SERVER=false
12-
BUILD_CLUSTER=false
1312
CUDA=false
1413
CUDA_ARCHS=""
1514
RUSTFLAGS=""
15+
GITHUB_TOKEN="${GITHUB_TOKEN:-}"
1616

1717
usage() {
18-
echo "Usage: $0 --zkvm <zkvm> --tag <tag> [--base] [--compiler] [--server] [--cluster] [--registry <registry>] [--cuda] [--cuda-archs <archs>] [--rustflags <flags>]"
18+
echo "Usage: $0 --zkvm <zkvm> --tag <tag> [--base] [--compiler] [--server] [--registry <registry>] [--cuda] [--cuda-archs <archs>] [--rustflags <flags>]"
1919
echo ""
2020
echo "Required:"
2121
echo " --zkvm <zkvm> zkVM to build for (e.g., zisk, sp1, risc0)"
@@ -25,7 +25,6 @@ usage() {
2525
echo " --base Build the base images"
2626
echo " --compiler Build the compiler image"
2727
echo " --server Build the server image"
28-
echo " --cluster Build the cluster image"
2928
echo ""
3029
echo "Optional:"
3130
echo " --registry <registry> Registry prefix (e.g., ghcr.io/eth-act/ere)"
@@ -62,10 +61,6 @@ while [[ $# -gt 0 ]]; do
6261
BUILD_SERVER=true
6362
shift
6463
;;
65-
--cluster)
66-
BUILD_CLUSTER=true
67-
shift
68-
;;
6964
--cuda)
7065
CUDA=true
7166
shift
@@ -100,8 +95,8 @@ if [ -z "$IMAGE_TAG" ]; then
10095
usage
10196
fi
10297

103-
if [ "$BUILD_BASE" = false ] && [ "$BUILD_COMPILER" = false ] && [ "$BUILD_SERVER" = false ] && [ "$BUILD_CLUSTER" = false ]; then
104-
echo "Error: At least one of --base, --compiler, --server, --cluster is required"
98+
if [ "$BUILD_BASE" = false ] && [ "$BUILD_COMPILER" = false ] && [ "$BUILD_SERVER" = false ]; then
99+
echo "Error: At least one of --base, --compiler, --server is required"
105100
usage
106101
fi
107102

@@ -120,21 +115,18 @@ BASE_IMAGE="${IMAGE_PREFIX}ere-base:${IMAGE_TAG}"
120115
BASE_ZKVM_IMAGE="${IMAGE_PREFIX}ere-base-${ZKVM}:${IMAGE_TAG}"
121116
COMPILER_ZKVM_IMAGE="${IMAGE_PREFIX}ere-compiler-${ZKVM}:${IMAGE_TAG}"
122117
SERVER_ZKVM_IMAGE="${IMAGE_PREFIX}ere-server-${ZKVM}:${IMAGE_TAG}"
123-
CLUSTER_ZKVM_IMAGE="${IMAGE_PREFIX}ere-cluster-${ZKVM}:${IMAGE_TAG}"
124118

125119
# Prepare build arguments
126120

127121
BASE_BUILD_ARGS=()
128122
BASE_ZKVM_BUILD_ARGS=(--build-arg "BASE_IMAGE=$BASE_IMAGE")
129123
COMPILER_ZKVM_BUILD_ARGS=(--build-arg "BASE_ZKVM_IMAGE=$BASE_ZKVM_IMAGE")
130124
SERVER_ZKVM_BUILD_ARGS=(--build-arg "BASE_ZKVM_IMAGE=$BASE_ZKVM_IMAGE")
131-
CLUSTER_ZKVM_BUILD_ARGS=()
132125

133126
if [ "$CUDA" = true ]; then
134127
BASE_BUILD_ARGS+=(--build-arg "CUDA=1")
135128
BASE_ZKVM_BUILD_ARGS+=(--build-arg "CUDA=1")
136129
SERVER_ZKVM_BUILD_ARGS+=(--build-arg "CUDA=1")
137-
CLUSTER_ZKVM_BUILD_ARGS+=(--build-arg "CUDA=1")
138130
fi
139131

140132
# Default CUDA_ARCHS when --cuda is set but --cuda-archs not specified
@@ -167,7 +159,6 @@ if [ "$CUDA" = true ] && [ -n "$CUDA_ARCHS" ]; then
167159
zisk)
168160
BASE_ZKVM_BUILD_ARGS+=(--build-arg "CUDA_ARCHS=$CUDA_ARCHS")
169161
SERVER_ZKVM_BUILD_ARGS+=(--build-arg "CUDA_ARCHS=$CUDA_ARCHS")
170-
CLUSTER_ZKVM_BUILD_ARGS+=(--build-arg "CUDA_ARCHS=$CUDA_ARCHS")
171162
;;
172163
*)
173164
;;
@@ -220,13 +211,4 @@ if [ "$BUILD_SERVER" = true ]; then
220211
.
221212
fi
222213

223-
if [ "$BUILD_CLUSTER" = true ]; then
224-
echo "Building zkvm cluster image: $CLUSTER_ZKVM_IMAGE"
225-
docker build \
226-
--file "docker/${ZKVM}/Dockerfile.cluster" \
227-
--tag "$CLUSTER_ZKVM_IMAGE" \
228-
"${CLUSTER_ZKVM_BUILD_ARGS[@]}" \
229-
.
230-
fi
231-
232214
echo "Build complete!"

.github/workflows/build-and-push-images.yml

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -175,63 +175,3 @@ jobs:
175175
--tag "$IMAGE:latest-cuda"
176176
fi
177177
done
178-
179-
build_and_push_cluster:
180-
name: Build and push cluster docker image (${{ matrix.zkvm }})
181-
needs: image_meta
182-
runs-on: ubuntu-latest
183-
permissions:
184-
contents: read
185-
packages: write
186-
strategy:
187-
fail-fast: false
188-
matrix:
189-
zkvm:
190-
- zisk
191-
steps:
192-
- name: Checkout repository
193-
uses: actions/checkout@v4
194-
195-
- name: Free up disk space
196-
run: bash .github/scripts/free-up-disk-space.sh
197-
198-
- name: Log in to GitHub Container Registry
199-
uses: docker/login-action@v3
200-
with:
201-
registry: ghcr.io
202-
username: ${{ github.actor }}
203-
password: ${{ secrets.GITHUB_TOKEN }}
204-
205-
- name: Build ere-cluster-${{ matrix.zkvm }} image with CUDA enabled
206-
env:
207-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
208-
run: |
209-
bash .github/scripts/build-image.sh \
210-
--zkvm ${{ matrix.zkvm }} \
211-
--registry ${{ needs.image_meta.outputs.registry }} \
212-
--tag ${{ needs.image_meta.outputs.sha_tag }}-cuda \
213-
--cluster \
214-
--cuda-archs '${{ env.CUDA_ARCHS }}'
215-
216-
- name: Push cluster image and add semver/latest tag if release tag exists
217-
env:
218-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
219-
run: |
220-
VERSION_TAG=$(gh api --paginate "repos/${{ github.repository }}/tags" \
221-
--jq ".[] | select(.commit.sha == \"${{ github.sha }}\" and (.name | startswith(\"v\"))) | .name" \
222-
| head -n1)
223-
224-
SHA_TAG="${{ needs.image_meta.outputs.sha_tag }}-cuda"
225-
226-
IMAGE="${{ needs.image_meta.outputs.registry }}/ere-cluster-${{ matrix.zkvm }}"
227-
228-
echo "Pushing $IMAGE:$SHA_TAG"
229-
docker push "$IMAGE:$SHA_TAG"
230-
231-
if [ -n "$VERSION_TAG" ]; then
232-
SEMVER_TAG="${VERSION_TAG#v}-cuda"
233-
echo "Tagging $IMAGE:$SHA_TAG as $IMAGE:$SEMVER_TAG and $IMAGE:latest-cuda"
234-
docker buildx imagetools create "$IMAGE:$SHA_TAG" \
235-
--tag "$IMAGE:$SEMVER_TAG" \
236-
--tag "$IMAGE:latest-cuda"
237-
fi

.github/workflows/test-verifier.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ jobs:
4141
sudo apt-get install -y protobuf-compiler
4242
4343
- name: Install Rust toolchain
44-
uses: dtolnay/rust-toolchain@nightly
44+
uses: dtolnay/rust-toolchain@master
45+
with:
46+
toolchain: nightly-2026-05-01
4547

4648
- name: Cache dependencies
4749
uses: Swatinem/rust-cache@v2
@@ -119,8 +121,9 @@ jobs:
119121
sudo apt-get install -y protobuf-compiler
120122
121123
- name: Install Rust toolchain
122-
uses: dtolnay/rust-toolchain@nightly
124+
uses: dtolnay/rust-toolchain@master
123125
with:
126+
toolchain: nightly-2026-05-01
124127
components: clippy
125128

126129
- name: Cache dependencies

.github/workflows/test-zkvm-zisk.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,5 @@ jobs:
1919
with:
2020
zkvm: zisk
2121
cuda: true
22-
cluster: true
2322
test_threads: 1
2423
skip_prove_test: true

.github/workflows/test-zkvm.yml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@ on:
1212
required: false
1313
type: boolean
1414
default: false
15-
cluster:
16-
description: 'Whether to build cluster image'
17-
required: false
18-
type: boolean
19-
default: false
2015
test_threads:
2116
description: 'Number of threads when testing via docker'
2217
required: false
@@ -41,7 +36,6 @@ jobs:
4136
name: Get image metadata
4237
runs-on: ubuntu-latest
4338
outputs:
44-
dockerfile_changed: ${{ steps.changed_files.outputs.any_changed }}
4539
image_registry: ${{ steps.image_meta.outputs.image_registry }}
4640
image_tag: ${{ steps.image_meta.outputs.image_tag }}
4741
cached_image_tag: ${{ steps.image_meta.outputs.cached_image_tag }}
@@ -127,18 +121,6 @@ jobs:
127121
--server \
128122
--cuda-archs '${{ env.CUDA_ARCHS }}'
129123
130-
- name: Build ere-cluster-${{ inputs.zkvm }} image with CUDA enabled
131-
if: ${{ inputs.cluster && needs.image_meta.outputs.dockerfile_changed == 'true' }}
132-
env:
133-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
134-
run: |
135-
bash .github/scripts/build-image.sh \
136-
--zkvm ${{ inputs.zkvm }} \
137-
--registry ${{ needs.image_meta.outputs.image_registry }} \
138-
--tag ${{ needs.image_meta.outputs.image_tag }}-cuda \
139-
--cluster \
140-
--cuda-archs '${{ env.CUDA_ARCHS }}'
141-
142124
clippy_via_docker:
143125
name: Clippy via Docker
144126
needs: image_meta

0 commit comments

Comments
 (0)