mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-02 05:13:08 +00:00
20 lines
692 B
Makefile
20 lines
692 B
Makefile
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"; \
|
|
CARGO_TARGET_DIR=target/$methods_path cargo risczero build --manifest-path $methods_path/guest/Cargo.toml; \
|
|
mkdir -p {{ARTIFACTS}}/$methods_path; \
|
|
cp target/$methods_path/riscv32im-risc0-zkvm-elf/docker/*.bin {{ARTIFACTS}}/$methods_path; \
|
|
done
|