Skip to content

Commit

Permalink
Removed test against old curve repository
Browse files Browse the repository at this point in the history
I removed the test against the old `algebra` repository to avoid conflicts in the CI.
  • Loading branch information
hdvanegasm committed Dec 20, 2023
1 parent 98df35d commit 33299d2
Showing 1 changed file with 1 addition and 66 deletions.
67 changes: 1 addition & 66 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -395,69 +395,4 @@ jobs:
--exclude ark-algebra-test-templates \
--exclude ark-algebra-bench-templates \
--exclude ark-poly-benches \
--target aarch64-unknown-none"

test_against_curves:
name: Test against curves
runs-on: ubuntu-latest
env:
RUSTFLAGS: -Dwarnings
strategy:
matrix:
curve:
- bls12_377
- bls12_381
- bn254
- pallas
- bw6_761
- mnt4_298
- mnt6_298
- ed_on_bls12_377
steps:
- name: Checkout curves
uses: actions/checkout@v4
with:
repository: arkworks-rs/curves
path: curves

- name: Checkout algebra
uses: actions/checkout@v4
with:
path: ark-algebra

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- name: Patch cargo.toml
run: |
if grep -q "\[patch.crates-io\]" curves/Cargo.toml ; then
MATCH=$(awk '/\[patch.crates-io\]/{ print NR; exit }' curves/Cargo.toml);
sed -i "$MATCH,\$d" curves/Cargo.toml
fi
{
echo "[patch.crates-io]";
echo "ark-ff = { path = '../ark-algebra/ff' }";
echo "ark-serialize = { path = '../ark-algebra/serialize' }";
echo "ark-ff-macros = { path = '../ark-algebra/ff-macros' }";
echo "ark-ff-asm = { path = '../ark-algebra/ff-asm' }";
echo "ark-ec = { path = '../ark-algebra/ec' }";
echo "ark-algebra-bench-templates = { path = '../ark-algebra/bench-templates' }"
echo "ark-algebra-test-templates = { path = '../ark-algebra/test-templates' }"
echo "ark-bls12-377 = { git = 'https://github.com/arkworks-rs/curves' }"
echo "ark-bls12-381 = { git = 'https://github.com/arkworks-rs/curves' }"
echo "ark-bn254 = { git = 'https://github.com/arkworks-rs/curves' }"
echo "ark-pallas = { git = 'https://github.com/arkworks-rs/curves' }"
echo "ark-bw6-761 = { git = 'https://github.com/arkworks-rs/curves' }"
echo "ark-mnt4-298 = { git = 'https://github.com/arkworks-rs/curves' }"
echo "ark-mnt6-298 = { git = 'https://github.com/arkworks-rs/curves' }"
echo "ark-ed-on-bls12-377 = { git = 'https://github.com/arkworks-rs/curves' }"
echo "ark-std = { git = 'https://github.com/arkworks-rs/std' }"
echo "ark-r1cs-std = { git = 'https://github.com/arkworks-rs/r1cs-std' }"
} >> curves/Cargo.toml
- name: Test on ${{ matrix.curve }}
run: "cd curves/${{ matrix.curve }} && cargo test --all-features"
--target aarch64-unknown-none"

0 comments on commit 33299d2

Please sign in to comment.