Skip to content

Updated blst to latest c-kzg hash #155

Updated blst to latest c-kzg hash

Updated blst to latest c-kzg hash #155

Workflow file for this run

name: mcl tests
on: [push, pull_request, workflow_dispatch]
env:
C_KZG_4844_GIT_HASH: '5703f6f3536b7692616bc289ac3f3867ab8db9d8'
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: "11"
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install python dependencies
run: |
python -m pip install --upgrade pip
pip install py_ecc
pip install PyYAML
- uses: actions/setup-go@v2
with:
go-version: ^1.19
- name: "[mcl] Build native libs for Linux"
if: matrix.os == 'ubuntu-latest'
run: |
cd mcl/kzg && bash build.sh
- name: "[mcl] Tests (minimal preset)"
if: matrix.os == 'ubuntu-latest'
uses: actions-rs/cargo@v1
with:
command: test
args: --package rust-kzg-mcl-bench --lib shared_tests::eip_4844::tests --no-fail-fast --features minimal-spec -- --test-threads 1
- name: "[mcl] Tests (mainnet preset)"
if: matrix.os == 'ubuntu-latest'
uses: actions-rs/cargo@v1
with:
command: test
args: shared_tests --manifest-path mcl/kzg-bench/Cargo.toml --no-fail-fast -- --test-threads 1
- name: "[mcl] Tests (mainnet preset, parallel)"
if: matrix.os == 'ubuntu-latest'
uses: actions-rs/cargo@v1
with:
command: test
args: shared_tests --manifest-path mcl/kzg-bench/Cargo.toml --no-fail-fast --features rust-kzg-mcl/parallel -- --test-threads 1
#- name: "[mcl] Tests (c-kzg-4844)"
# if: matrix.os == 'ubuntu-latest'
# run: |
# cd mcl/kzg && bash run-c-kzg-4844-tests.sh
#- name: "[mcl] Tests (c-kzg-4844 parallel)"
# if: matrix.os == 'ubuntu-latest'
# run: |
# cd mcl/kzg && bash run-c-kzg-4844-tests.sh --parallel
- name: "[mcl] Clippy"
if: matrix.os == 'ubuntu-latest'
uses: actions-rs/cargo@v1
with:
command: clippy
args: --manifest-path mcl/kzg/Cargo.toml --all-targets --all-features -- -D warnings
- name: "[mcl] Formatting"
if: matrix.os == 'ubuntu-latest'
uses: actions-rs/cargo@v1
with:
command: fmt
args: --manifest-path mcl/kzg/Cargo.toml -- --check
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --manifest-path kzg-bench/Cargo.toml -- --check