feat: Add WebAuthN RP support #811
Workflow file for this run
This file contains hidden or 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: Benchmarks | |
| permissions: | |
| contents: read | |
| on: | |
| pull_request: | |
| branches: "main" | |
| paths: | |
| - '.github/workflows/benchmark*.yml' | |
| - 'Cargo.toml' | |
| - 'benches/**' | |
| - 'src/**' | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| bench_pr_branch: | |
| # DO NOT REMOVE: For handling Fork PRs see Pull Requests from Forks | |
| if: "github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]' && github.actor != 'openstack-experimental-release-plz'" | |
| permissions: | |
| pull-requests: write | |
| strategy: | |
| matrix: | |
| include: | |
| - target: x86_64-unknown-linux-gnu | |
| os: ubuntu-latest | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0 | |
| with: | |
| egress-policy: audit | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@6d653acede28d24f02e3cd41383119e8b1b35921 # stable | |
| with: | |
| toolchain: stable | |
| targets: ${{ matrix.target }} | |
| - name: Rust Cache | |
| uses: swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2.8.0 | |
| - uses: bencherdev/bencher@main | |
| - name: Track base branch benchmarks with Bencher | |
| run: | | |
| bencher run \ | |
| --project keystone \ | |
| --token '${{ secrets.BENCHER_API_TOKEN }}' \ | |
| --branch "$GITHUB_HEAD_REF" \ | |
| --start-point "$GITHUB_BASE_REF" \ | |
| --start-point-hash '${{ github.event.pull_request.base.sha }}' \ | |
| --start-point-clone-thresholds \ | |
| --start-point-reset \ | |
| --testbed ${{ matrix.os }} \ | |
| --github-actions '${{ secrets.GITHUB_TOKEN }}' \ | |
| --adapter rust_criterion \ | |
| cargo bench --features bench_internals |