diff --git a/.github/workflows/manual_workflow.yml b/.github/workflows/manual_workflow.yml index 877f7ee..1e3817a 100644 --- a/.github/workflows/manual_workflow.yml +++ b/.github/workflows/manual_workflow.yml @@ -29,7 +29,7 @@ jobs: DATABASE_URL: ${{ secrets.DATABASE_URL }} #run: docker run --rm -e DATABASE_URL="${DATABASE_URL}" --gpus all --name zk-benchmarks -w /app/zk-benchmarks zk-benchmarks-image:latest /bin/bash -c "cd /app/zk-benchmarks/benchmarks/rust/msm && cargo bench" # run: docker run --rm -e BENCHMARK_REPO=/app/icicle -e DATABASE_URL="${DATABASE_URL}" --gpus all --name zk-benchmarks -w /app/zk-benchmarks zk-benchmarks-image:latest /bin/bash -c "cd /app/zk-benchmarks/zkbench && cargo run" - run: docker run --rm -e BENCHMARK_REPO=/app/icicle -e DATABASE_URL="${DATABASE_URL}" --gpus all --name zk-benchmarks -w /app/zk-benchmarks zk-benchmarks-image:latest /bin/bash -c "cd /app/zk-benchmarks && git pull && git rev-parse --abbrev-ref HEAD && git rev-parse --short HEAD; cd /app/zk-benchmarks/zkbench && cargo run" + run: docker run --rm -e BENCHMARK_REPO=/app/icicle -e DATABASE_URL="${DATABASE_URL}" --gpus all --name zk-benchmarks -w /app/zk-benchmarks zk-benchmarks-image:latest /bin/bash -c "cd /app/zk-benchmarks && git pull && git rev-parse --abbrev-ref HEAD && git rev-parse --short HEAD; cd /app/zk-benchmarks/zkbench && cargo run --quiet" # - name: Benchmark Rust MSM operation # run: | diff --git a/zkbench/src/main.rs b/zkbench/src/main.rs index 529eea2..65a1beb 100644 --- a/zkbench/src/main.rs +++ b/zkbench/src/main.rs @@ -66,8 +66,8 @@ async fn main() -> std::result::Result<(), Box> { let database_url = env::var("DATABASE_URL").expect("DATABASE_URL must be set"); println!("Database URL: {}", database_url); - // let id = zkbench::git_id(&repository_path); - // println!("Current commit hash: {}", id); + let id = zkbench::git_id(&repository_path); + println!("Current commit hash: {}", id); // std::process::exit(1); // let path= "../benchmarks/rust/msm";