Skip to content

Commit

Permalink
Failing build if zkevm-prover make fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
lvella committed Apr 15, 2024
1 parent 356f4d0 commit 82d7768
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ jobs:
run: cargo build --all --all-targets --all-features --profile pr-tests
- uses: taiki-e/install-action@nextest
- name: Run tests
run: RUST_LOG=info cargo nextest run --workspace --all-features --all-targets --cargo-profile pr-tests
run: RUST_LOG=info cargo nextest run --workspace --all-features --all-targets --cargo-profile pr-tests --nocapture
11 changes: 10 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,20 @@ fn main() {
// Run make test in the zkevm-prover directory
let zkevm_prover_dir = Path::new(env!("CARGO_MANIFEST_DIR")).join("externals/zkevm-prover");

Command::new("make")
eprintln!(
"Running make test in zkevm-prover directory: {}",
zkevm_prover_dir.display()
);
let make_status = Command::new("make")
.arg("test")
.arg("-j")
.arg(num_cpus::get().to_string())
.current_dir(&zkevm_prover_dir)
.status()
.expect("Failed to run make test in zkevm-prover directory");

assert!(
make_status.success(),
"make test failed in zkevm-prover directory"
);
}

0 comments on commit 82d7768

Please sign in to comment.