Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
176 commits
Select commit Hold shift + click to select a range
a567243
Adapt quickstart to new Template Repo and changes in writing programs…
jestape May 1, 2026
22382d1
Update documentation for GPU support
agnusmor May 4, 2026
f09fd0d
Update docs to zisk_template, replace mermaid and set worker.toml var…
jestape May 4, 2026
945090a
Clarify proof output as .bin
jestape May 4, 2026
df21ef7
Version generic PK download.
jestape May 4, 2026
030f765
Add cargo-zisk to build and update proving key path
jestape May 4, 2026
aeb89d1
Revise build instructions for distributed execution
jestape May 4, 2026
e6fc494
Calling binaries directly.
jestape May 4, 2026
42b4b8c
Fix embedded asm default
RogerTaule May 5, 2026
3016304
Merge pull request #932 from 0xPolygonHermez/fix/embedded-asm
RogerTaule May 5, 2026
efdcd2f
Remove unnecessary environment variable for sha_hasher test
agnusmor May 5, 2026
aa1c7f8
Remove environment variable for sha_hasher test
agnusmor May 5, 2026
e0ca80d
Merge pull request #938 from 0xPolygonHermez/fix/gha-pr-sha-hasher
agnusmor May 5, 2026
668438c
Implement zkVM I/O interface
rubo May 5, 2026
6e4281b
Update ring buffer size to 128 MB
RogerTaule May 6, 2026
deced79
Add testing for publics optimization, clippy and compilation error
RogerTaule May 6, 2026
c38cc48
Merge pull request #1 from RogerTaule/fix/zkvm-interface
rubo May 6, 2026
8197497
Apply `cargo fmt`
rubo May 6, 2026
2500d3b
Merge pull request #936 from 0xPolygonHermez/fix/coordinator-errors
RogerTaule May 6, 2026
e79f1fa
Merge pull request #940 from 0xPolygonHermez/fix/ring-buffer
RogerTaule May 6, 2026
b5fd4b2
Merge pull request #939 from rubo/pre-develop-0.17.1
RogerTaule May 6, 2026
1fef701
Fix ziskup plonk
RogerTaule May 6, 2026
d8e6e74
Merge pull request #945 from 0xPolygonHermez/fix/ziskup-plonk
RogerTaule May 6, 2026
82b6ba9
Merge pull request #944 from 0xPolygonHermez/fix/asm-setup
RogerTaule May 6, 2026
305fd2c
Fix solidity verifier
RogerTaule May 6, 2026
bcf6689
Fix solidity verifier (#947)
RogerTaule May 6, 2026
30c8a83
Build GPU zisk binaries using CUDA_ARCHS="major"
agnusmor May 6, 2026
cdf00fa
Merge pull request #948 from 0xPolygonHermez/fix/gha-release-gpu
agnusmor May 6, 2026
1a4de84
Bump version to 0.17.1 in Cargo.toml and Cargo.lock
agnusmor May 6, 2026
daac74b
Merge pull request #949 from 0xPolygonHermez:update-version-0.17.1
agnusmor May 6, 2026
1a9ef6d
Update Cargo.lock
agnusmor May 6, 2026
dd5107c
Update to match new install script
jestape May 7, 2026
01985fb
Cargo update fix MPI Sevilla
RogerTaule May 7, 2026
6feeb44
Fix mpi hints
RogerTaule May 7, 2026
b1711b3
added ansible, docker, prometheus and grafana in distributed/deploy
xavi-pinsach Apr 30, 2026
085a6f7
refactor deployment: ZiskPaths resolver + ziskup --system mode
xavi-pinsach May 1, 2026
136afea
install.sh: drop cargo build, source binaries from /opt/zisk bundle
xavi-pinsach May 1, 2026
963a499
simplification
xavi-pinsach May 1, 2026
1da6c3f
add mac smoke test
xavi-pinsach May 1, 2026
1b4f5a3
fix macos test
xavi-pinsach May 1, 2026
fee546a
fix macos test
xavi-pinsach May 1, 2026
a5e0713
fix macos test
xavi-pinsach May 1, 2026
b83574f
add test_install_service.yml: PR-time CI for worker/coordinator install
xavi-pinsach May 1, 2026
6a3f376
simplify distributed service installation scripts
xavi-pinsach May 1, 2026
ce9ac2f
ziskup --system: bundle re-download idempotency via .zisk-version marker
xavi-pinsach May 1, 2026
42a83dd
curl-pipe-able install.sh + ziskup --with-snark for SNARK key
xavi-pinsach May 1, 2026
39d34f7
align Ansible roles + Docker with /opt/zisk bundle layout
xavi-pinsach May 1, 2026
4fffd24
ziskup: --uninstall + .zisk-receipt manifest tracking
xavi-pinsach May 2, 2026
4d137b5
deploy: k8s Helm chart + slim Dockerfile; reorganize with top-level R…
xavi-pinsach May 2, 2026
e799d20
fix worker-install-macos.sh
xavi-pinsach May 3, 2026
b7856d3
fix coordinator-install-macos.sh
xavi-pinsach May 3, 2026
2f918da
consolidate path resolution onto ZiskPaths; drop dead helpers
xavi-pinsach May 3, 2026
f5795cf
paths: extract canonical names as constants; expose toolchains + veri…
xavi-pinsach May 3, 2026
c400299
fix services install.sh
xavi-pinsach May 5, 2026
fc28748
fix zisk cache
xavi-pinsach May 5, 2026
78c423e
fix install.sh
xavi-pinsach May 6, 2026
4d96587
fix in curl-pipe installation script
xavi-pinsach May 6, 2026
a97902a
fx install.sh scripts for containers
xavi-pinsach May 6, 2026
655cd2a
fix default parameters in distributed/deploy install.sh scripts
xavi-pinsach May 6, 2026
5c8ab18
fix proving-key path resolution in worker install.sh
xavi-pinsach May 6, 2026
fb0a889
Merge pull request #952 from 0xPolygonHermez/fix/mpi-hints
RogerTaule May 7, 2026
2fffeea
Fix tests
RogerTaule May 7, 2026
1514065
fix --no-service printout for paths with spaces in worker install.sh
xavi-pinsach May 6, 2026
aca5953
fix read_unit_metadata to use literal match in lib.sh
xavi-pinsach May 6, 2026
c8d3a00
drop unused mpi_params.sh from coordinator bootstrap
xavi-pinsach May 6, 2026
85a1ccb
minor fixes from copilot
xavi-pinsach May 7, 2026
d1e4ea0
move proving-key helpers + default_home into impl ZiskPaths
xavi-pinsach May 7, 2026
dbff76b
temptative to fix smoke tests
xavi-pinsach May 7, 2026
f4ad645
Merge pull request #928 from 0xPolygonHermez/pre-develop-0.17.0-deplo…
RogerTaule May 7, 2026
c944b56
fix: get_read_value wrong bit-shift for cross-boundary reads
juanfranblanco May 1, 2026
93b92d7
fix: value_row read-before-write in TwoWrites path
juanfranblanco May 1, 2026
fda7c94
fix: is_full_aligned checks 4-byte alignment instead of 8-byte
juanfranblanco May 1, 2026
a12ebdf
fix: emit actual ind_width in bus payload for cross-word-boundary rea…
juanfranblanco May 6, 2026
afd9106
Avoid panic when proof is malformed
RogerTaule May 7, 2026
6393d62
Fixing determinism + sdk not rebuilding
RogerTaule May 7, 2026
a0eee2d
declare 5 phantom workspace members
xavi-pinsach May 7, 2026
1dbc8f8
upgrade rand to v9 to fix a depndabot alert 'Rand is unsound with a c…
xavi-pinsach May 7, 2026
c04be54
Merge pull request #955 from 0xPolygonHermez/fix/ziskfloat.elf
RogerTaule May 7, 2026
88e3cdb
Merge pull request #954 from 0xPolygonHermez/fix/zisk-proof-verify-panic
RogerTaule May 7, 2026
683b7e2
Working on panicking guest
RogerTaule May 7, 2026
10b564e
Implement flush with retries
agnusmor May 7, 2026
50d160f
rollnack rand version to its original one until toolchain fixed
xavi-pinsach May 8, 2026
5214d87
Update installation guide to include GPU support requirements
agnusmor May 8, 2026
324f61f
ASM fixes to support signals
RogerTaule May 8, 2026
21e10d3
Update worker.toml to match coordinator.toml
jestape May 8, 2026
aef271b
Detect compatible NVIDIA driver version in ziskup
agnusmor May 8, 2026
c5de321
Fix
agnusmor May 8, 2026
5f0ce65
Adding segfault and assert cases
RogerTaule May 8, 2026
9e98a69
Fixes
agnusmor May 8, 2026
9867b9a
Merge pull request #958 from 0xPolygonHermez/docs/template-changed
jestape May 8, 2026
ba25129
Merge branch 'pre-develop-0.17.1' into feature/ziskup-nvidia
agnusmor May 8, 2026
03399ba
Add notes on controlling GPU architecture during build process
agnusmor May 8, 2026
9a960cd
Merge pull request #959 from 0xPolygonHermez/feature/ziskup-nvidia
agnusmor May 8, 2026
4d7990d
Fix clippy
agnusmor May 8, 2026
50dc60e
Handle additional I/O error cases in retry logic for HintBuffer
agnusmor May 8, 2026
e92bbd1
Merge pull request #961 from 0xPolygonHermez/feature/hints-flush-retry
agnusmor May 8, 2026
5d6410c
fix: restore hardcoded bus width=8 for direct store double-not-aligne…
juanfranblanco May 11, 2026
9fb4468
Implement retry logic for writing hints in HintBuffer
agnusmor May 11, 2026
2913649
Fix
agnusmor May 11, 2026
2684371
Fix fmt
agnusmor May 11, 2026
26232b5
fix: compute next_aligned from original address, not prev_aligned
maximmenshikov May 9, 2026
a061c72
fix: C++ MemCounter unaligned 8-byte access dropped second word
maximmenshikov May 9, 2026
2299e2f
Merge pull request #962 from NethermindEth/fix/nativeaot_alignment
zkronos73 May 11, 2026
b3b5861
Merge pull request #941 from Nethereum/fix/nativeaot-constraints
zkronos73 May 11, 2026
53600ec
`ziskos` made `no_std` compatible for ZisK target
marcinbugaj May 11, 2026
12697ba
temptative fix to remove jobs after retention seconds expires
xavi-pinsach May 11, 2026
7e3b5ed
fix use
xavi-pinsach May 11, 2026
4da4250
Merge pull request #963 from 0xPolygonHermez/fix/panic-guest
RogerTaule May 11, 2026
7293a53
Review remarks
marcinbugaj May 11, 2026
81f5338
Liveness fixes
RogerTaule May 11, 2026
5b4d940
Rebase fix
RogerTaule May 11, 2026
5592ca9
Fixing program setup recalculation when doing CLI call
RogerTaule May 11, 2026
6255f87
fix coordinator
xavi-pinsach May 11, 2026
9653d4e
Merge branch 'pre-develop-0.17.1-leak' into fix/mpi-liveness
xavi-pinsach May 11, 2026
88f7c4e
rename completed_job_retention_seconds to job_ttl_seconds
xavi-pinsach May 11, 2026
6b9024e
More fixes, renaming, simpliciations
RogerTaule May 11, 2026
89d28dc
Fix bug in final lt_flag verification in ArithEq and ArithEq384. Opti…
zkronos73 May 12, 2026
3f62224
Cleaning and more fixes
RogerTaule May 12, 2026
e7d90cf
Fix macos clippy
RogerTaule May 12, 2026
d0c49b4
Merge pull request #969 from 0xPolygonHermez/fix/program-setup
RogerTaule May 12, 2026
f21a37b
Merge pull request #968 from 0xPolygonHermez/fix/mpi-liveness
RogerTaule May 12, 2026
bd95917
`zkvm-definitions` made "no_std"
marcinbugaj May 12, 2026
77cdcd5
`zkvm-interface` made "no_std"
marcinbugaj May 12, 2026
5594ef3
Panic handler added in `ziskos`
marcinbugaj May 12, 2026
283650b
Check libziskos.a does not bundle std
marcinbugaj May 12, 2026
7d72138
Verifier working directly with u64 (#972)
RogerTaule May 12, 2026
9852354
Merge pull request #1 from eth-act/feature/no-std-compatibility-1
marcinbugaj May 12, 2026
dac5e3d
Merge branch 'pre-develop-0.17.1' into feature/no-std-compatibility
marcinbugaj May 12, 2026
6c63088
Fix CI
marcinbugaj May 12, 2026
2f4d345
Merge remote-tracking branch 'origin/pre-develop-0.17.1' into fix/ari…
zkronos73 May 12, 2026
60d0afd
Gate panic handler with a feature
marcinbugaj May 12, 2026
96d3a73
Deadlock fix coordinator
RogerTaule May 13, 2026
1787aae
Deadlock fix coordinator (#973)
RogerTaule May 13, 2026
29e903c
Merge pull request #965 from eth-act/feature/no-std-compatibility
hecmas May 13, 2026
61fdd30
Merge branch 'pre-develop-0.17.1' into feature/hints-write-retry
agnusmor May 13, 2026
ae7d959
Enhance write and flush methods with retry logic and error handling
agnusmor May 13, 2026
a19cb04
Merge pull request #964 from 0xPolygonHermez/feature/hints-write-retry
agnusmor May 13, 2026
8563164
Merge remote-tracking branch 'origin/pre-develop-0.17.1' into fix/ari…
zkronos73 May 13, 2026
c0b801b
Fix no std verifier
RogerTaule May 13, 2026
f878d8b
Cargo fmt
RogerTaule May 13, 2026
2141f6d
Merge pull request #975 from 0xPolygonHermez/fix/no-std-verifier
RogerTaule May 13, 2026
72ae186
fix bug with no-cycle prev_lt_flag
zkronos73 May 13, 2026
2d999db
Merge remote-tracking branch 'origin/pre-develop-0.17.1' into fix/ari…
zkronos73 May 13, 2026
1dd589a
Merge pull request #971 from 0xPolygonHermez/fix/aritheqs-alias-const…
zkronos73 May 13, 2026
347a152
Fix unix tests
RogerTaule May 14, 2026
c7909d3
Merge pull request #977 from 0xPolygonHermez/fix/unix-tests
RogerTaule May 14, 2026
65f9261
Fix examples
RogerTaule May 14, 2026
e93550c
Building multiple programs same workspace together
RogerTaule May 14, 2026
31eef91
Renaming
RogerTaule May 14, 2026
ff05dec
Copilot fix
RogerTaule May 14, 2026
75957af
Merge pull request #979 from 0xPolygonHermez/fix/build-multiple-progr…
RogerTaule May 14, 2026
fb00ebf
Fix GPU program setup
RogerTaule May 14, 2026
2d69266
Merge pull request #981 from 0xPolygonHermez/fix/gpu-program-setup
RogerTaule May 14, 2026
dc5e4a8
Exposing panic-handler error
RogerTaule May 14, 2026
8435cd5
Verifier optimization
RogerTaule May 14, 2026
9dfe2a5
libziskos_standalone.a
marcinbugaj May 14, 2026
c160461
Exporting verify_zisk_proof_c
RogerTaule May 14, 2026
223d48e
Enable building natively - with std
marcinbugaj May 14, 2026
0333545
Merge pull request #984 from eth-act/mmbugaj/fix/panic-handler
RogerTaule May 14, 2026
a27ebb2
Adding the linter
hecmas May 14, 2026
cbbd5b9
Merge pull request #985 from 0xPolygonHermez/fix/panic-handler
hecmas May 14, 2026
a4a8888
Merge pull request #983 from 0xPolygonHermez/feature/verifier-optimiz…
hecmas May 14, 2026
803467b
Fixing verify_zisk_proof header
hecmas May 14, 2026
fcff94b
Improve error handling and logging in write and flush operations
agnusmor May 15, 2026
1dda684
fix fmt
agnusmor May 15, 2026
cfed1fc
Refactor pr.yml gha and test-env scripts to support GPU runner
agnusmor May 15, 2026
647ee45
Fixes
agnusmor May 15, 2026
159b1d5
Merge pull request #987 from 0xPolygonHermez/feature/refactor-gha-pr-gpu
agnusmor May 15, 2026
ff26432
Bump version to 0.18.0
agnusmor May 15, 2026
6988858
Merge pull request #989 from 0xPolygonHermez/feature/update-versions
agnusmor May 15, 2026
0b73700
Update Cargo.lock
agnusmor May 15, 2026
90a77a9
Fix diagnostic input variable name in test_elf function call
agnusmor May 15, 2026
310c2c6
Merge pull request #990 from 0xPolygonHermez/fix/update-cargo-lock
agnusmor May 15, 2026
7040155
Solidity verifier 0.18.0
RogerTaule May 15, 2026
f81a40d
Merge pull request #992 from 0xPolygonHermez/pre-develop-0.18.0
agnusmor May 15, 2026
f01a039
Merge pull request #996 from 0xPolygonHermez/feature/solidity-verifier
RogerTaule May 15, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 82 additions & 0 deletions .github/scripts/check-libziskos.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
#!/usr/bin/env bash
set -euo pipefail

. "$HOME/.cargo/env"

FAIL=0
TARGET=riscv64ima-zisk-zkvm-elf

cargo +zisk build -p ziskos-staticlib --release \
--target "$TARGET" \
--config 'profile.release.lto="fat"'

LIBZISKOS=$(find target -name "libziskos_staticlib.a" -path "*$TARGET*" | head -1)
if [ -z "$LIBZISKOS" ]; then
echo "FAIL: libziskos_staticlib.a not found"
exit 1
fi

# Check that std is not bundled
if ar t "$LIBZISKOS" | grep -q std; then
echo "FAIL: libziskos_staticlib.a contains std object files:"
ar t "$LIBZISKOS" | grep std
FAIL=1
else
echo "OK: no std object files bundled"
fi

# Use llvm-nm from the zisk toolchain sysroot to avoid LLVM version mismatches
# when reading bitcode objects produced by lto="fat".
rustup component add llvm-tools --toolchain zisk 2>/dev/null || true
LLVM_NM=$(rustup run zisk sh -c 'find "$(rustc --print sysroot)" -name "llvm-nm" -type f | head -1')
if [[ -z "$LLVM_NM" ]]; then
echo "FAIL: llvm-nm not found in zisk toolchain sysroot"
exit 1
fi
echo "Using llvm-nm: $LLVM_NM"

NM_OUTPUT=$("$LLVM_NM" "$LIBZISKOS" 2>/dev/null || true)
if [[ -z "$NM_OUTPUT" ]]; then
echo "FAIL: llvm-nm produced no output for $LIBZISKOS"
exit 1
fi

REQUIRED_SYMBOLS=(
_start
read_input
write_output
zkvm_init
zkvm_deinit
zkvm_keccak256
zkvm_sha256
zkvm_secp256k1_ecrecover
zkvm_secp256k1_verify
zkvm_secp256r1_verify
zkvm_bn254_g1_add
zkvm_bn254_g1_mul
zkvm_bn254_pairing
zkvm_bls12_g1_add
zkvm_bls12_g1_msm
zkvm_bls12_g2_add
zkvm_bls12_g2_msm
zkvm_bls12_pairing
zkvm_bls12_map_fp_to_g1
zkvm_bls12_map_fp2_to_g2
zkvm_blake2f
zkvm_ripemd160
zkvm_modexp
zkvm_kzg_point_eval
)

for SYM in "${REQUIRED_SYMBOLS[@]}"; do
if ! grep -qE " T $SYM$" <<< "$NM_OUTPUT"; then
echo "FAIL: missing symbol: $SYM"
FAIL=1
fi
done

if [ "$FAIL" -eq 0 ]; then
echo "OK: libziskos_staticlib.a passes all checks"
else
exit "$FAIL"
fi
35 changes: 35 additions & 0 deletions .github/scripts/docker_exec.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#!/usr/bin/env bash
# Wrapper for 'docker exec' with cancellation support.
# When SIGINT/SIGTERM is received (e.g. from a GitHub Actions job cancellation),
# it forcefully removes the container so the runner step exits immediately
# instead of blocking until the docker exec command finishes on its own.
#
# The container name is read from the TEST_CONTAINER environment variable.
# Use '--' to separate docker exec options from the command:
#
# Usage: docker_exec.sh [docker exec options] -- COMMAND [ARGS...]
# e.g. docker_exec.sh -u myuser -e VAR=val -- bash -lc 'echo hello'
set -e

if [[ -z "${TEST_CONTAINER:-}" ]]; then
echo "ERROR: TEST_CONTAINER environment variable is not set" >&2
exit 1
fi

# Split args into docker exec options (before --) and command (after --)
EXEC_OPTS=()
while [[ $# -gt 0 && "$1" != "--" ]]; do
EXEC_OPTS+=("$1")
shift
done
shift # remove --

_cleanup() {
echo "Signal received — stopping container ${TEST_CONTAINER}..."
docker rm -f "${TEST_CONTAINER}" 2>/dev/null || true
}
trap _cleanup INT TERM

# Run the command in the container
docker exec "${EXEC_OPTS[@]}" "${TEST_CONTAINER}" "$@" &
wait $!
181 changes: 138 additions & 43 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,72 +46,169 @@ jobs:

test-x86_64:
name: Test on Ubuntu x86_64
runs-on: self-hosted
runs-on: gpu-hosted
timeout-minutes: 180
container:
image: ubuntu:22.04
options:
--shm-size=48g
-v /home/gha/cache-setup:/github/home/output:rw
# NOTE: We intentionally use 'docker exec' in individual steps rather than
# defining a job-level container. The test scripts deploy systemd services
# (zisk-coordinator, zisk-worker) inside the container, which requires
# systemd as PID 1 and a fully privileged environment. GitHub Actions
# job-level containers do not support this setup.
defaults:
run:
shell: bash
env:
ZISK_GHA: "1"
ZISK_REPO_DIR: ${{ github.workspace }}
ZISK_TESTVECTORS_BRANCH: "develop-0.3.0"
DISTRIBUTED_PROCESSES: "2"
DISTRIBUTED_THREADS: "64"
PROVE_FLAGS: "-y"
TERM: xterm
TEST_CONTAINER: zisk-gha-test

steps:
- name: Fix workspace permissions
run: |
sudo chown -R "$(id -u):$(id -g)" "$GITHUB_WORKSPACE" || true
sudo chmod -R u+rwX "$GITHUB_WORKSPACE" || true

- name: Checkout sources
uses: actions/checkout@v4

- name: Install dependencies
- name: Give workspace ownership to container user
run: |
cd "$GITHUB_WORKSPACE/tools/test-env"
./install_deps.sh
sudo chown -R 1000:1000 "$GITHUB_WORKSPACE"
sudo chmod -R u+rwX "$GITHUB_WORKSPACE"

- name: Start test container with systemd
run: |
docker rm -f "${TEST_CONTAINER}" || true

docker run -d \
--name "${TEST_CONTAINER}" \
--privileged \
--cgroupns=host \
--gpus all \
--shm-size=48g \
-v /sys/fs/cgroup:/sys/fs/cgroup:rw \
-v "$GITHUB_WORKSPACE":/workspace/zisk:rw \
-v /home/gha/cache-setup:/home/ziskuser/output:rw \
-e ZISK_GHA=1 \
-e ZISK_REPO_DIR=/workspace/zisk \
-e ZISK_TESTVECTORS_BRANCH="${ZISK_TESTVECTORS_BRANCH}" \
-e PROVE_FLAGS=-y \
-e TERM=xterm \
ziskvm/zisk-runner-gpu:latest \
/sbin/init

sleep 3

if ! docker ps --format '{{.Names}}' | grep -q "^${TEST_CONTAINER}$"; then
echo "Container stopped unexpectedly"
docker ps -a
docker logs "${TEST_CONTAINER}" || true
docker inspect "${TEST_CONTAINER}" --format '{{.State.ExitCode}} {{.State.Error}}' || true
exit 1
fi

docker exec "${TEST_CONTAINER}" bash -lc '
echo "PID 1:"
ps -p 1 -o pid,comm,args
systemctl is-system-running || true
'

- name: Build ZisK
run: |
cd "$GITHUB_WORKSPACE/tools/test-env"
./build_zisk.sh
.github/scripts/docker_exec.sh \
-u ziskuser \
-- bash -lc '
cd /workspace/zisk/tools/test-env
./build_zisk.sh
'

- name: Check libziskos.a does not bundle std and contains required symbols
run: |
docker cp .github/scripts/check-libziskos.sh "${TEST_CONTAINER}:/home/ziskuser/check-libziskos.sh"
docker exec "${TEST_CONTAINER}" chmod +x /home/ziskuser/check-libziskos.sh
.github/scripts/docker_exec.sh \
-u ziskuser \
-- bash -lc '
cd /workspace/zisk
/home/ziskuser/check-libziskos.sh
'

- name: Build setup
env:
USE_CACHE_SETUP: "1"
run: |
cd "$GITHUB_WORKSPACE/tools/test-env"
./build_setup.sh
.github/scripts/docker_exec.sh \
-u ziskuser \
-e USE_CACHE_SETUP="1" \
-- bash -lc '
cd /workspace/zisk/tools/test-env
./build_setup.sh
'

- name: Test sha_hasher
env:
ZISK_TEMPLATE_BRANCH: "pre-develop-0.17.0"
- name: Test sha_hasher (CPU)
run: |
cd "$GITHUB_WORKSPACE/tools/test-env"
./test_sha_hasher.sh
.github/scripts/docker_exec.sh \
-u ziskuser \
-e ONLY_CPU="1" \
-- bash -lc '
cd /workspace/zisk/tools/test-env
./test_sha_hasher.sh
'

- name: Test ELF diagnostic
- name: Test sha_hasher (GPU)
run: |
cd "$GITHUB_WORKSPACE/tools/test-env"
./test_diagnostic.sh
.github/scripts/docker_exec.sh \
-u ziskuser \
-- bash -lc '
cd /workspace/zisk/tools/test-env
./test_sha_hasher.sh
'

- name: Verify Constraints Ethereum block
env:
DISABLE_PROVE: "1"
BLOCK_INPUTS: "mainnet_24626900_221_16_zec_reth.bin"
- name: Test ELF diagnostic
run: |
cd "$GITHUB_WORKSPACE/tools/test-env"
./test_eth_block.sh
.github/scripts/docker_exec.sh \
-u ziskuser \
-- bash -lc '
cd /workspace/zisk/tools/test-env
./test_diagnostic.sh
'

- name: Prove Ethereum block
env:
DISABLE_ROM_SETUP: "1"
BLOCK_INPUTS_DISTRIBUTED: "mainnet_24628607_66_7_zec_reth.bin"
run: |
cd "$GITHUB_WORKSPACE/tools/test-env"
./test_eth_block.sh
.github/scripts/docker_exec.sh \
-u ziskuser \
-e BLOCK_INPUTS_SINGLE="mainnet_24628607_66_7_zec_reth.bin,mainnet_24626900_221_16_zec_reth.bin" \
-e ZISK_ETH_CLIENT_BRANCH="${ZISK_ETH_CLIENT_BRANCH}" \
-- bash -lc '
cd /workspace/zisk/tools/test-env
./test_eth_block.sh
'

- name: Ethproofs test (no hints)
run: |
.github/scripts/docker_exec.sh \
-u ziskuser \
-e BLOCK_INPUTS_ETHPROOFS="mainnet_24628595_641_54_zec_reth.bin,mainnet_24697073_308_22_zec_reth.bin" \
-e ZISK_ETHPROOFS_BRANCH="${ZISK_ETHPROOFS_BRANCH}" \
-e ZISK_ETH_CLIENT_BRANCH="${ZISK_ETH_CLIENT_BRANCH}" \
-- bash -lc '
cd /workspace/zisk/tools/test-env
./test_ethproofs.sh
'

- name: Ethproofs test (hints)
run: |
.github/scripts/docker_exec.sh \
-u ziskuser \
-e ZISK_ETHPROOFS_BRANCH="${ZISK_ETHPROOFS_BRANCH}" \
-e ZISK_ETH_CLIENT_BRANCH="${ZISK_ETH_CLIENT_BRANCH}" \
-e ENABLE_HINTS="1" \
-- bash -lc '
cd /workspace/zisk/tools/test-env
./test_ethproofs.sh
'

- name: Stop test container
if: always()
run: |
docker rm -f "${TEST_CONTAINER}" || true
sudo chown -R "$(id -u):$(id -g)" "$GITHUB_WORKSPACE" || true
sudo chmod -R u+rwX "$GITHUB_WORKSPACE" || true

test-macos:
name: Test on macOS
Expand Down Expand Up @@ -142,8 +239,6 @@ jobs:
./build_zisk.sh

- name: Test sha_hasher
env:
ZISK_TEMPLATE_BRANCH: "pre-develop-0.17.0"
run: |
cd "$GITHUB_WORKSPACE/tools/test-env"
./test_sha_hasher.sh
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@ jobs:
if: matrix.platform == 'linux'
shell: bash
run: |
tmp_log=$(mktemp)
cargo build --release --target "${{ matrix.target }}" -vv 2>&1 | tee "${tmp_log}"
if ! grep -qi "STARKS compiled with GPU support" "${tmp_log}"; then
echo "Error: Zisk built without GPU support, aborting."
CUDA_ARCHS="major" cargo build --release --target "${{ matrix.target }}"
version_output=$(./target/${{ matrix.target }}/release/cargo-zisk --version)
if ! echo "${version_output}" | grep -qi "\[gpu\]"; then
echo "Error: Zisk built without GPU support, aborting. Version: ${version_output}"
exit 1
fi

Expand Down
Loading
Loading