Skip to content

Add Chunker to Bridge (#175) #1

Add Chunker to Bridge (#175)

Add Chunker to Bridge (#175) #1

Workflow file for this run

name: BitVM CI
on:
push:
branches: [ "main" ]
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches: ["*"]
env:
CARGO_TERM_COLOR: always
jobs:
clippy:
if: github.event.pull_request.draft == false
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run clippy
run: cargo clippy
build:
if: github.event.pull_request.draft == false
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build
- name: Run tests
run: |
cargo test -- --skip bn254::pairing::test::test_quad_miller_loop_with_c_wi --skip groth16::test::test_groth16_verifier --skip bridge:: --skip chunker::chunk_groth16_verifier::test::test_hinted_groth16_verifier_stable --test-threads=8
cargo test -- --test bn254::pairing::test::test_quad_miller_loop_with_c_wi --exact
cargo test -- --test groth16::test::test_groth16_verifier --exact
# bridge:
# if: github.event.pull_request.draft == false
# timeout-minutes: 60
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - name: Run bridge tests
# run: |
# docker pull blockstream/esplora:latest
# docker run -e NO_REGTEST_MINING=1 -p 50001:50001 -p 8094:80 --volume $PWD/data_bitcoin_regtest:/data --rm -i -t blockstream/esplora bash -c "/srv/explorer/run.sh bitcoin-regtest explorer" &
# sleep 720
# docker exec -it $(docker ps | grep blockstream/esplora | awk '{print $1}') /bin/bash
# /srv/explorer/bitcoin/bin/bitcoin-cli -conf=/data/.bitcoin.conf -datadir=/data/bitcoin createwallet default
# address=`/srv/explorer/bitcoin/bin/bitcoin-cli -conf=/data/.bitcoin.conf -datadir=/data/bitcoin getnewaddress`
# /srv/explorer/bitcoin/bin/bitcoin-cli -conf=/data/.bitcoin.conf -datadir=/data/bitcoin generatetoaddress 100 $address
# watch -n 40 "/srv/explorer/bitcoin/bin/bitcoin-cli -conf=/data/.bitcoin.conf -datadir=/data/bitcoin generatetoaddress 1 $address" &>/dev/null &
# exit
# cargo test -- --test bridge::