Skip to content

Commit 0049e31

Browse files
committed
Test 32x9 implementation in CI
1 parent e26f5b9 commit 0049e31

File tree

3 files changed

+36
-3
lines changed

3 files changed

+36
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,40 @@ 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+
sd '^mina-curves.*$' '' ./Cargo.toml
68+
sd '^ark-ff = \{ version .*$' '' ./Cargo.toml
69+
sd -F '# UNCOMMENTED_IN_CI ' '' ./Cargo.toml
70+
cat ./Cargo.toml
71+
- name: Build ledger tests
72+
run: |
73+
cd ledger
74+
cargo build --release --tests
75+
- name: Run ledger tests
76+
run: |
77+
cd ledger
78+
cargo test --release -- -Z unstable-options --report-time
79+
4680
tx-fuzzer-check:
4781
runs-on: ubuntu-20.04
4882
steps:

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ ledger = { path = "ledger", package = "mina-tree" }
4949
mina-hasher = { git = "https://github.com/openmina/proof-systems", rev = "c478b19" }
5050
mina-signer = { git = "https://github.com/openmina/proof-systems", rev = "c478b19" }
5151
mina-curves = { git = "https://github.com/openmina/proof-systems", rev = "c478b19" }
52-
# mina-curves = { git = "https://github.com/openmina/proof-systems", rev = "c478b19", features = [ "32x9" ] }
52+
# UNCOMMENTED_IN_CI mina-curves = { git = "https://github.com/openmina/proof-systems", rev = "c478b19", features = [ "32x9" ] }
5353
o1-utils = { git = "https://github.com/openmina/proof-systems", rev = "c478b19" }
5454
kimchi = { git = "https://github.com/openmina/proof-systems", rev = "c478b19" }
5555
mina-poseidon = {git = "https://github.com/openmina/proof-systems", rev = "c478b19" }
@@ -67,7 +67,7 @@ static_assertions = "1.1.0"
6767
juniper = { version = "0.16" }
6868

6969
ark-ff = { version = "0.3.0", features = [ "parallel", "asm", "std" ] }
70-
# ark-ff = { version = "0.3.0", features = [ "parallel", "asm", "std", "32x9" ] }
70+
# UNCOMMENTED_IN_CI ark-ff = { version = "0.3.0", features = [ "parallel", "asm", "std", "32x9" ] }
7171

7272

7373
[profile.fuzz]

0 commit comments

Comments
 (0)