2025-12-17 01:03:03 +03:00
|
|
|
set shell := ["bash", "-eu", "-o", "pipefail", "-c"]
|
|
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
@just --list
|
|
|
|
|
|
|
|
|
|
# ---- Configuration ----
|
|
|
|
|
METHODS_PATH := "program_methods"
|
|
|
|
|
TEST_METHODS_PATH := "test_program_methods"
|
|
|
|
|
ARTIFACTS := "artifacts"
|
|
|
|
|
|
|
|
|
|
# ---- Artifacts build ----
|
|
|
|
|
build-artifacts:
|
|
|
|
|
@echo "🔨 Building artifacts"
|
|
|
|
|
@for methods_path in {{METHODS_PATH}} {{TEST_METHODS_PATH}}; do \
|
|
|
|
|
echo "Building artifacts for $methods_path"; \
|
2025-12-18 01:51:21 +03:00
|
|
|
CARGO_TARGET_DIR=target/$methods_path cargo risczero build --manifest-path $methods_path/guest/Cargo.toml; \
|
2025-12-17 01:03:03 +03:00
|
|
|
mkdir -p {{ARTIFACTS}}/$methods_path; \
|
2025-12-18 01:51:21 +03:00
|
|
|
cp target/$methods_path/riscv32im-risc0-zkvm-elf/docker/*.bin {{ARTIFACTS}}/$methods_path; \
|
2025-12-17 01:03:03 +03:00
|
|
|
done
|