Skip to content

Commit 492db9b

Browse files
committed
Test 32x9 implementation in CI
1 parent e26f5b9 commit 492db9b

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,45 @@ jobs:
4343
cd ledger
4444
cargo test --release -- -Z unstable-options --report-time
4545
46+
ledger-32x9-tests:
47+
runs-on: ubuntu-20.04
48+
steps:
49+
- name: Git checkout
50+
uses: actions/checkout@v4
51+
- name: Setup build dependencies
52+
run: |
53+
sudo apt update
54+
sudo apt install -y protobuf-compiler
55+
- name: Setup Rust
56+
run: |
57+
# Nightly to be able to use `--report-time` below
58+
rustup install nightly
59+
rustup override set nightly
60+
- name: Download circuits files
61+
run: |
62+
git clone --depth 1 https://github.com/openmina/circuit-blobs.git
63+
ln -s -b $PWD/circuit-blobs/* ledger/
64+
- name: Enable 32x9 fields implementation
65+
run: |
66+
cargo install sd
67+
export ORIGINAL='ark-ff = { version = "0.3.0", features = [ "parallel", "asm", "std" ] }'
68+
export WITH_FEATURE='ark-ff = { version = "0.3.0", features = [ "parallel", "asm", "std", "32x9" ] }'
69+
sd -F "$ORIGINAL" "$WITH_FEATURE" ./Cargo.toml
70+
71+
export ORIGINAL='mina-curves = { git = "https://github.com/openmina/proof-systems", rev = "c478b19" }'
72+
export WITH_FEATURE='mina-curves = { git = "https://github.com/openmina/proof-systems", rev = "c478b19", features = [ "32x9" ] }'
73+
sd -F "$ORIGINAL" "$WITH_FEATURE" ./Cargo.toml
74+
75+
cat ./Cargo.toml
76+
- name: Build ledger tests
77+
run: |
78+
cd ledger
79+
cargo build --release --tests
80+
- name: Run ledger tests
81+
run: |
82+
cd ledger
83+
cargo test --release -- -Z unstable-options --report-time
84+
4685
tx-fuzzer-check:
4786
runs-on: ubuntu-20.04
4887
steps:

0 commit comments

Comments
 (0)