Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
belijzajac committed Jun 18, 2023
1 parent 842e98f commit 8af562c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 24 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/mcl-benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,27 +24,27 @@ jobs:
with:
go-version: ^1.19

- name: "[mcl10-rust] Build native libs for Linux"
- name: "[mcl] Build native libs for Linux"
if: matrix.os == 'ubuntu-latest'
run: |
cd mcl/kzg && bash build.sh
- name: "[mcl10-rust] Benchmark"
- name: "[mcl] Benchmark"
if: matrix.os == 'ubuntu-latest'
run: |
cargo bench --manifest-path mcl/kzg-bench/Cargo.toml
- name: "[mcl10-rust] Benchmark (parallel)"
- name: "[mcl] Benchmark (parallel)"
if: matrix.os == 'ubuntu-latest'
run: |
cargo bench --manifest-path mcl/kzg-bench/Cargo.toml --features mcl_rust/parallel
cargo bench --manifest-path mcl/kzg-bench/Cargo.toml --features rust-kzg-mcl/parallel
#- name: "[mcl10-rust] Benchmark (c-kzg-4844)"
#- name: "[mcl] Benchmark (c-kzg-4844)"
# if: matrix.os == 'ubuntu-latest'
# run: |
# cd mcl/kzg && bash run-c-kzg-4844-benches.sh

#- name: "[mcl10-rust] Benchmark (c-kzg-4844 parallel)"
#- name: "[mcl] Benchmark (c-kzg-4844 parallel)"
# if: matrix.os == 'ubuntu-latest'
# run: |
# cd mcl/kzg && bash run-c-kzg-4844-benches.sh --parallel
20 changes: 10 additions & 10 deletions .github/workflows/mcl-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,50 +34,50 @@ jobs:
with:
go-version: ^1.19

- name: "[mcl10-rust] Build native libs for Linux"
- name: "[mcl] Build native libs for Linux"
if: matrix.os == 'ubuntu-latest'
run: |
cd mcl/kzg && bash build.sh
- name: "[mcl10-rust] Tests (minimal preset)"
- name: "[mcl] Tests (minimal preset)"
if: matrix.os == 'ubuntu-latest'
uses: actions-rs/cargo@v1
with:
command: test
args: --package mcl_kzg_bench --lib shared_tests::eip_4844::tests --no-fail-fast --features minimal-spec -- --test-threads 1
args: --package rust-kzg-mcl-bench --lib shared_tests::eip_4844::tests --no-fail-fast --features minimal-spec -- --test-threads 1

- name: "[mcl10-rust] Tests (mainnet preset)"
- 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: "[mcl10-rust] Tests (mainnet preset, parallel)"
- 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 mcl_rust/parallel -- --test-threads 1
args: shared_tests --manifest-path mcl/kzg-bench/Cargo.toml --no-fail-fast --features rust-kzg-mcl/parallel -- --test-threads 1

#- name: "[mcl10-rust] Tests (c-kzg-4844)"
#- name: "[mcl] Tests (c-kzg-4844)"
# if: matrix.os == 'ubuntu-latest'
# run: |
# cd mcl/kzg && bash run-c-kzg-4844-tests.sh

#- name: "[mcl10-rust] Tests (c-kzg-4844 parallel)"
#- 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: "[mcl10-rust] Clippy"
- 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: "[mcl10-rust] Formatting"
- name: "[mcl] Formatting"
if: matrix.os == 'ubuntu-latest'
uses: actions-rs/cargo@v1
with:
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ jobs:
- name: "[blst] Build Linux"
run: |
cargo rustc --manifest-path blst/Cargo.toml --release --target x86_64-unknown-linux-gnu --crate-type=staticlib --features=blst-portable
mv target/x86_64-unknown-linux-gnu/release/libblst_rust.a staging/linux/non-parallel/rust-kzg-blst.a
mv target/x86_64-unknown-linux-gnu/release/librust_kzg_blst.a staging/linux/non-parallel/rust_kzg_blst.a
cargo rustc --manifest-path blst/Cargo.toml --release --target x86_64-unknown-linux-gnu --crate-type=staticlib --features=blst-force-adx
mv target/x86_64-unknown-linux-gnu/release/libblst_rust.a staging/linux/non-parallel-force-adx/rust-kzg-blst.a
mv target/x86_64-unknown-linux-gnu/release/librust_kzg_blst.a staging/linux/non-parallel-force-adx/rust_kzg_blst.a
cargo rustc --manifest-path blst/Cargo.toml --release --target x86_64-unknown-linux-gnu --crate-type=staticlib --features=parallel,blst-portable
mv target/x86_64-unknown-linux-gnu/release/libblst_rust.a staging/linux/parallel/rust-kzg-blst.a
mv target/x86_64-unknown-linux-gnu/release/librust_kzg_blst.a staging/linux/parallel/rust_kzg_blst.a
cargo rustc --manifest-path blst/Cargo.toml --release --target x86_64-unknown-linux-gnu --crate-type=staticlib --features=parallel,blst-force-adx
mv target/x86_64-unknown-linux-gnu/release/libblst_rust.a staging/linux/parallel-force-adx/rust-kzg-blst.a
mv target/x86_64-unknown-linux-gnu/release/librust_kzg_blst.a staging/linux/parallel-force-adx/rust_kzg_blst.a
- name: "[blst] Compress Linux artifacts"
run: |
Expand All @@ -54,13 +54,13 @@ jobs:
- name: "[blst] Build Windows"
run: |
cargo rustc --manifest-path blst/Cargo.toml --release --target x86_64-pc-windows-gnu --crate-type=staticlib --features=blst-portable
mv target/x86_64-pc-windows-gnu/release/libblst_rust.a staging/windows/non-parallel/rust-kzg-blst.a
mv target/x86_64-pc-windows-gnu/release/librust_kzg_blst.a staging/windows/non-parallel/rust_kzg_blst.a
cargo rustc --manifest-path blst/Cargo.toml --release --target x86_64-pc-windows-gnu --crate-type=staticlib --features=blst-force-adx
mv target/x86_64-pc-windows-gnu/release/libblst_rust.a staging/windows/non-parallel-force-adx/rust-kzg-blst.a
mv target/x86_64-pc-windows-gnu/release/librust_kzg_blst.a staging/windows/non-parallel-force-adx/rust_kzg_blst.a
cargo rustc --manifest-path blst/Cargo.toml --release --target x86_64-pc-windows-gnu --crate-type=staticlib --features=parallel,blst-portable
mv target/x86_64-pc-windows-gnu/release/libblst_rust.a staging/windows/parallel/rust-kzg-blst.a
mv target/x86_64-pc-windows-gnu/release/librust_kzg_blst.a staging/windows/parallel/rust_kzg_blst.a
cargo rustc --manifest-path blst/Cargo.toml --release --target x86_64-pc-windows-gnu --crate-type=staticlib --features=parallel,blst-force-adx
mv target/x86_64-pc-windows-gnu/release/libblst_rust.a staging/windows/parallel-force-adx/rust-kzg-blst.a
mv target/x86_64-pc-windows-gnu/release/librust_kzg_blst.a staging/windows/parallel-force-adx/rust_kzg_blst.a
- name: "[blst] Compress Windows artifacts"
run: |
Expand Down

0 comments on commit 8af562c

Please sign in to comment.