Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
fix: fix compilation with test_only feature (#84)
Browse files Browse the repository at this point in the history
* fix: fix compilation with test_only feature

* ci: add job to test script with test_only feature
  • Loading branch information
Nashtare authored May 28, 2024
1 parent a95adf9 commit 578997a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ jobs:
- name: Run cargo clippy
run: cargo clippy --all-targets -- -D warnings

simple_proof:
name: Execute bash script to generate and verify a proof from a small block
simple_proof_regular:
name: Execute bash script to generate and verify a proof for a small block.
runs-on: zero-ci

steps:
Expand All @@ -77,3 +77,16 @@ jobs:
run: |
pushd tools
./simple_test.sh
simple_proof_witness_only:
name: Execute bash script to generate the proof witness for a small block.
runs-on: zero-ci

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Run the script
run: |
pushd tools
./simple_test.sh test_only
4 changes: 3 additions & 1 deletion prover/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ impl ProverInput {

// Dummy proof to match expected output type.
Ok(GeneratedBlockProof {
b_height: block_number.as_u64(),
b_height: block_number
.to_u64()
.expect("Block number should fit in a u64"),
intern: proof_gen::proof_gen::dummy_proof()?,
})
}
Expand Down

0 comments on commit 578997a

Please sign in to comment.