Skip to content

Commit

Permalink
Tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
Pratyush committed Dec 28, 2023
1 parent 8e44464 commit f82ccee
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,27 +164,24 @@ jobs:
- name: Install Rust
uses: dtolnay/rust-toolchain@stable

- name: Change directory to curves
run: ls; cd curves

- name: Patch cargo.toml
run: |
ls
cd curves
if grep -q "\[patch.crates-io\]" Cargo.toml ; then
MATCH=$(awk '/\[patch.crates-io\]/{ print NR; exit }' Cargo.toml);
sed -i "$MATCH,\$d" Cargo.toml
fi
{
echo "[patch.crates-io]"
echo "ark-std = { git = 'https://github.com/arkworks-rs/std' }"
echo "ark-ec = { git = 'https://github.com/arkworks-rs/algebra' }"
echo "ark-ff = { git = 'https://github.com/arkworks-rs/algebra' }"
echo "ark-poly = { git = 'https://github.com/arkworks-rs/algebra' }"
echo "ark-ec = { path = '../ec' }"
echo "ark-ff = { path = '../ff' }"
echo "ark-poly = { git = '../poly' }"
echo "ark-relations = { git = 'https://github.com/arkworks-rs/snark' }"
echo "ark-serialize = { git = 'https://github.com/arkworks-rs/algebra' }"
echo "ark-algebra-bench-templates = { git = 'https://github.com/arkworks-rs/algebra' }"
echo "ark-algebra-test-templates = { git = 'https://github.com/arkworks-rs/algebra' }"
echo "ark-serialize = { path = '../serialize' }"
echo "ark-algebra-bench-templates = { path = '../bench-templates' }"
echo "ark-algebra-test-templates = { path = '../test-templates' }"
echo "ark-r1cs-std = { path = '../r1cs-std' }"
} >> Cargo.toml
- name: Test on ${{ matrix.curve }}
run: "ls; cd ${{ matrix.curve }} && cargo test --features 'r1cs'"
cd ${{ matrix.curve }} && cargo test --features 'r1cs'

0 comments on commit f82ccee

Please sign in to comment.