E2E Tests #63
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: E2E Tests | |
on: | |
schedule: | |
# This will run the workflow every day at 2:00 AM UTC | |
- cron: '0 2 * * *' | |
pull_request: | |
branches: | |
# not to be run on DEV branch to save resources | |
- main | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build-and-test: | |
runs-on: 7950x3d | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Rust | |
uses: dtolnay/rust-toolchain@stable | |
- uses: Swatinem/rust-cache@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: '^1.16' | |
- name: Run tests | |
run: | | |
mkdir -p tmp/data | |
cd tmp | |
# ECC part | |
git clone https://github.com/PolyhedraZK/ExpanderCompilerCollection.git | |
cd ExpanderCompilerCollection | |
git switch dev | |
cargo test --release | |
cp expander_compiler/*.txt ../data | |
go run ecgo/examples/poseidon_m31/main.go | |
cp *.txt ../data | |
cd ../ | |
# Expander part | |
git clone https://github.com/PolyhedraZK/Expander.git | |
cd Expander | |
git switch dev | |
mkdir data | |
mv ../data/*.txt data/ | |
ls -l data | |
# Run local tests | |
RUSTFLAGS="-C target-cpu=native -C target-feature=+avx512f" cargo +nightly run --release --bin=gkr -- -s keccak -f gf2ext128 -t 16 | |
RUSTFLAGS="-C target-cpu=native -C target-feature=+avx512f" cargo +nightly run --release --bin=gkr -- -s keccak -f m31ext3 -t 16 | |
RUSTFLAGS="-C target-cpu=native -C target-feature=+avx512f" cargo +nightly run --release --bin=gkr -- -s keccak -f fr -t 16 | |
RUSTFLAGS="-C target-cpu=native -C target-feature=+avx512f" cargo +nightly run --release --bin=gkr -- -s poseidon -f m31ext3 -t 16 | |
# # Run MPI tests | |
# RUSTFLAGS="-C target-cpu=native -C target-feature=+avx512f" mpiexec -n 2 cargo +nightly run --release --bin=gkr-mpi -- -s keccak -f gf2ext128 | |
# RUSTFLAGS="-C target-cpu=native -C target-feature=+avx512f" mpiexec -n 2 cargo +nightly run --release --bin=gkr-mpi -- -s keccak -f m31ext3 | |
# RUSTFLAGS="-C target-cpu=native -C target-feature=+avx512f" mpiexec -n 2 cargo +nightly run --release --bin=gkr-mpi -- -s keccak -f fr | |
# RUSTFLAGS="-C target-cpu=native -C target-feature=+avx512f" mpiexec -n 2 cargo +nightly run --release --bin=gkr-mpi -- -s poseidon -f m31ext3 |