Skip to content

Commit ff54a11

Browse files
ArtiomTrsauliusgrigaitis
authored andcommitted
Added support for multiple BLS backends in KZG
1 parent 0b5d7d3 commit ff54a11

File tree

21 files changed

+944
-279
lines changed

21 files changed

+944
-279
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ jobs:
77
strategy:
88
matrix:
99
os: [ubuntu-latest, macos-latest, windows-latest]
10+
include:
11+
- os: ubuntu-latest
12+
backend: blst
13+
- os: windows-latest
14+
backend: zkcrypto,constantine
15+
- os: macos-latest
16+
backend: arkworks,mcl
1017

1118
runs-on: ${{ matrix.os }}
1219

@@ -24,7 +31,7 @@ jobs:
2431
# Running `rustc` or Cargo should automatically install the toolchain specified in `rust-toolchain.toml`.
2532
- uses: Swatinem/rust-cache@v2
2633
- name: Run cargo build
27-
run: cargo build --release --features default-networks
34+
run: cargo build --release --no-default-features --features default-networks,${{ matrix.backend }}
2835
- name: Check if code is formatted (Linux)
2936
if: runner.os == 'Linux'
3037
run: cargo fmt --check
@@ -34,10 +41,10 @@ jobs:
3441
# It's a known issue that networking tests randomly fails on Macos
3542
- name: Run tests
3643
if: runner.os == 'Macos'
37-
run: cargo test --release --no-fail-fast -- --skip behaviour --skip common
44+
run: cargo test --release --no-fail-fast --no-default-features --features ${{ matrix.backend }} -- --skip behaviour --skip common
3845
- name: Run tests
3946
if: runner.os != 'Macos'
40-
run: cargo test --release --no-fail-fast --no-default-features --features bls/zkcrypto
47+
run: cargo test --release --no-fail-fast --no-default-features --features ${{ matrix.backend }}
4148
- name: Check consensus-spec-tests coverage (Linux)
4249
if: runner.os == 'Linux'
4350
run: scripts/ci/consensus-spec-tests-coverage.rb

0 commit comments

Comments
 (0)