Add pairing BLS12 377 #3080
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: CI | |
on: | |
pull_request: | |
branches: [ '*' ] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
fetch_iai_benchs: | |
name: Fetch iai benchmarks | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Check cache | |
id: cache-iai-results | |
uses: actions/cache/restore@v3 | |
with: | |
lookup-only: true | |
path: | | |
*/target | |
key: ${{ runner.os }}-iai-benchmark-cache-${{ github.event.pull_request.base.sha }} | |
- name: Install valgrind | |
if: ${{ steps.cache-iai-results.outputs.cache-hit != 'true' }} | |
run: | | |
sudo apt update | |
sudo apt-get install -y valgrind | |
cargo install --version 0.3.1 iai-callgrind-runner | |
- name: Install stable toolchain | |
if: ${{ steps.cache-iai-results.outputs.cache-hit != 'true' }} | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: stable | |
- uses: actions/checkout@v3 | |
if: ${{ steps.cache-iai-results.outputs.cache-hit != 'true' }} | |
with: | |
ref: ${{ github.event.pull_request.base.sha }} | |
- uses: Swatinem/rust-cache@v2 | |
if: ${{ steps.cache-iai-results.outputs.cache-hit != 'true' }} | |
with: | |
shared-key: ${{ runner.os }}-benchmark-build-cache | |
- name: Run benchmarks | |
if: ${{ steps.cache-iai-results.outputs.cache-hit != 'true' }} | |
run: cargo bench --no-fail-fast --bench "iai_*" | |
- name: Save cache | |
if: ${{ steps.cache-iai-results.outputs.cache-hit != 'true' }} | |
uses: actions/cache/save@v3 | |
with: | |
path: | | |
*/target | |
key: ${{ runner.os }}-iai-benchmark-cache-${{ github.event.pull_request.base.sha }} | |
run_iai_benchs: | |
name: Run iai benchmarks | |
needs: fetch_iai_benchs | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Install valgrind | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y valgrind | |
cargo install --version 0.3.1 iai-callgrind-runner | |
- name: Install stable toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: stable | |
- uses: actions/checkout@v3 | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
shared-key: ${{ runner.os }}-iai-benchmark-cache | |
- name: Restore cache | |
id: cache-iai-results | |
uses: actions/cache/restore@v3 | |
with: | |
path: | | |
*/target | |
key: ${{ runner.os }}-iai-benchmark-cache-${{ github.event.pull_request.base.sha }} | |
fail-on-cache-miss: true | |
- name: Run benchmarks | |
run: cargo bench --no-fail-fast --bench "iai_*" |