Add some notes to 'transcript_verifier_sync' and make clippy happy #1706
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: expander-rs CI | |
on: [pull_request, push] | |
env: | |
RUSTFLAGS: "-Dwarnings -C target-cpu=native" | |
RUST_BACKTRACE: 1 | |
ACTIONS_RUNNER_DEBUG: true | |
jobs: | |
lint: | |
name: Lint | |
runs-on: 7950x3d | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: rustfmt, clippy | |
- name: Setup Dependencies | |
run: | | |
sudo apt-get install -y build-essential | |
- run: python3 ./scripts/install.py | |
- run: cargo fmt --all -- --check | |
- run: cargo clippy --all | |
build-and-test: | |
name: Build and Test (${{ matrix.os }}${{ matrix.feature != '' && format(', {0}', matrix.feature) || '' }}) | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: | |
- os: macos-latest | |
- os: 7950x3d | |
feature: avx2 | |
- os: 7950x3d | |
feature: avx512f | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
prefix-key: "mpi-v5.0.6" | |
- name: Setup Dependencies | |
run: | | |
if [ "${{ matrix.os }}" == "macos-latest" ]; then | |
brew install gcc make | |
else | |
sudo apt-get install -y build-essential | |
fi | |
- name: Set RUSTFLAGS for AVX | |
if: matrix.feature != '' | |
run: echo "RUSTFLAGS=$RUSTFLAGS -C target-feature=+${{ matrix.feature }}" >> $GITHUB_ENV | |
- name: Setup | |
run: | | |
python3 ./scripts/install.py | |
mpiexec --version | |
- name: download data | |
run: | | |
cargo run --bin=dev-setup --release | |
- name: Unit Tests | |
run: | | |
cargo build --all-features --release | |
cargo test --all-features --release --workspace | |
- name: E2E Test | |
run: | | |
./scripts/test_recursion.py | |
gkr-e2e: | |
name: Benchmark (${{ matrix.os }}${{ matrix.feature != '' && format(', {0}', matrix.feature) || '' }}, ${{ matrix.field }}) | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: | |
- os: macos-latest | |
field: m31ext3 | |
- os: macos-latest | |
field: fr | |
- os: macos-latest | |
field: gf2ext128 | |
- os: 7950x3d | |
feature: avx2 | |
field: m31ext3 | |
- os: 7950x3d | |
feature: avx2 | |
field: fr | |
- os: 7950x3d | |
feature: avx2 | |
field: gf2ext128 | |
- os: 7950x3d | |
feature: avx512f | |
field: m31ext3 | |
- os: 7950x3d | |
feature: avx512f | |
field: fr | |
- os: 7950x3d | |
feature: avx512f | |
field: gf2ext128 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
prefix-key: "mpi-v5.0.6" | |
- name: Setup Dependencies | |
run: | | |
if [ "${{ matrix.os }}" == "macos-latest" ]; then | |
brew install gcc make | |
else | |
sudo apt-get install -y build-essential | |
fi | |
- name: Set RUSTFLAGS for AVX | |
if: matrix.feature != '' | |
run: echo "RUSTFLAGS=$RUSTFLAGS -C target-feature=+${{ matrix.feature }}" >> $GITHUB_ENV | |
- name: Run benchmark | |
run: | | |
python3 ./scripts/install.py | |
cargo run --bin=dev-setup --release | |
cargo run --bin=gkr --release -- -t ${{ matrix.os == 'macos-latest' && 2 || 16 }} -f ${{ matrix.field }} |