Browse Source

Add a CI job to test against the curves repo (#88)

master
Marcin 2 years ago
committed by GitHub
parent
commit
50ab8ee5ba
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 43 additions and 0 deletions
  1. +43
    -0
      .github/workflows/ci.yml

+ 43
- 0
.github/workflows/ci.yml

@ -140,3 +140,46 @@ jobs:
run: | run: |
cargo build --no-default-features --target aarch64-unknown-none cargo build --no-default-features --target aarch64-unknown-none
cargo check --examples --no-default-features --target aarch64-unknown-none cargo check --examples --no-default-features --target aarch64-unknown-none
test_against_curves:
name: Test against curves
runs-on: ubuntu-latest
env:
RUSTFLAGS: -Dwarnings
strategy:
matrix:
curve:
- bls12_377
- pallas
- vesta
- mnt4_298
- mnt6_298
- mnt6_753
- ed_on_bls12_381
steps:
- name: Checkout curves
uses: actions/checkout@v2
with:
repository: arkworks-rs/curves
- name: Checkout r1cs-std
uses: actions/checkout@v2
with:
path: r1cs-std
- 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\]" Cargo.toml ; then
echo "[patch.crates-io]" >> Cargo.toml
fi
echo "ark-r1cs-std = { path = 'r1cs-std' }" >> Cargo.toml
- name: Test on ${{ matrix.curve }}
run: "cd ${{ matrix.curve }} && cargo test --features 'r1cs'"

Loading…
Cancel
Save