11
11
CARGO_TERM_COLOR : always
12
12
13
13
jobs :
14
+ clippy :
15
+ if : github.event.pull_request.draft == false
16
+ timeout-minutes : 60
17
+ runs-on : ubuntu-latest
18
+ steps :
19
+ - uses : actions/checkout@v4
20
+ - name : Run clippy
21
+ run : cargo clippy
14
22
build :
15
23
if : github.event.pull_request.draft == false
16
24
timeout-minutes : 60
@@ -21,20 +29,33 @@ jobs:
21
29
run : cargo build
22
30
- name : Run tests
23
31
run : |
24
- sudo dockerd -H unix:///var/run/docker.sock &
25
- sleep 8
26
- docker pull blockstream/esplora:latest
27
- 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" &
28
- sleep 720
29
- docker exec -it $(docker ps | grep blockstream/esplora | awk '{print $1}') /bin/bash
30
- PATH=$PATH:/srv/explorer/bitcoin/bin
31
- bitcoin-cli -conf=/data/.bitcoin.conf -datadir=/data/bitcoin createwallet default
32
- address=`bitcoin-cli -conf=/data/.bitcoin.conf -datadir=/data/bitcoin getnewaddress`
33
- bitcoin-cli -conf=/data/.bitcoin.conf -datadir=/data/bitcoin generatetoaddress 100 $address
34
- watch -n 40 "bitcoin-cli -conf=/data/.bitcoin.conf -datadir=/data/bitcoin generatetoaddress 1 $address" &>/dev/null &
35
- exit
36
- cargo test -- --skip bn254::pairing::test::test_quad_miller_loop_with_c_wi --skip groth16::test::test_groth16_verifier
32
+ cargo test -- --test-threads=4 \
33
+ --skip bn254::pairing::test::test_quad_miller_loop_with_c_wi \
34
+ --skip bn254::pairing::test::test_hinted_quad_miller_loop_with_c_wi \
35
+ --skip groth16::test::test_groth16_verifier \
36
+ --skip groth16::test::test_hinted_groth16_verifier \
37
+ --skip groth16::offchain_checker::test::test_checkpairing_with_c_wi_groth16 \
38
+ --skip bridge::
37
39
cargo test -- --test bn254::pairing::test::test_quad_miller_loop_with_c_wi --exact
40
+ cargo test -- --test bn254::pairing::test::test_hinted_quad_miller_loop_with_c_wi --exact
38
41
cargo test -- --test groth16::test::test_groth16_verifier --exact
39
- - name : Run clippy
40
- run : cargo clippy
42
+ cargo test -- --test groth16::test::test_hinted_groth16_verifier --exact
43
+ cargo test -- --test groth16::offchain_checker::test::test_checkpairing_with_c_wi_groth16 --exact
44
+ # bridge:
45
+ # if: github.event.pull_request.draft == false
46
+ # timeout-minutes: 60
47
+ # runs-on: ubuntu-latest
48
+ # steps:
49
+ # - uses: actions/checkout@v4
50
+ # - name: Run bridge tests
51
+ # run: |
52
+ # docker pull blockstream/esplora:latest
53
+ # 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" &
54
+ # sleep 720
55
+ # docker exec -it $(docker ps | grep blockstream/esplora | awk '{print $1}') /bin/bash
56
+ # /srv/explorer/bitcoin/bin/bitcoin-cli -conf=/data/.bitcoin.conf -datadir=/data/bitcoin createwallet default
57
+ # address=`/srv/explorer/bitcoin/bin/bitcoin-cli -conf=/data/.bitcoin.conf -datadir=/data/bitcoin getnewaddress`
58
+ # /srv/explorer/bitcoin/bin/bitcoin-cli -conf=/data/.bitcoin.conf -datadir=/data/bitcoin generatetoaddress 100 $address
59
+ # watch -n 40 "/srv/explorer/bitcoin/bin/bitcoin-cli -conf=/data/.bitcoin.conf -datadir=/data/bitcoin generatetoaddress 1 $address" &>/dev/null &
60
+ # exit
61
+ # cargo test -- --test bridge::
0 commit comments