mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-07-17 13:20:17 +00:00
Build target-specific nextest archives once and reuse each extraction across four host workers. Pin prebuilt tools and RISC Zero components, reduce duplicate cache writes, and preserve coverage checks.
45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
on:
|
|
pull_request:
|
|
paths:
|
|
- "tools/crypto_primitives_bench/**"
|
|
- "lee/key_protocol/**"
|
|
- "lee/state_machine/core/**"
|
|
- ".github/workflows/bench-regression.yml"
|
|
|
|
permissions:
|
|
contents: read
|
|
pull-requests: write
|
|
|
|
name: bench-regression
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
env:
|
|
CARGO_INCREMENTAL: "0"
|
|
|
|
jobs:
|
|
crypto-primitives:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 60
|
|
steps:
|
|
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
with:
|
|
# criterion-compare-action checks out the base branch in a second
|
|
# working tree, so we need the full history.
|
|
fetch-depth: 0
|
|
|
|
- uses: ./.github/actions/install-system-deps
|
|
|
|
- name: Install active toolchain
|
|
run: rustup install --profile minimal
|
|
|
|
- name: Run criterion-compare against base branch
|
|
uses: boa-dev/criterion-compare-action@adfd3a94634fe2041ce5613eb7df09d247555b87 # v3.2.4
|
|
with:
|
|
branchName: ${{ github.base_ref }}
|
|
cwd: tools/crypto_primitives_bench
|
|
benchName: primitives
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|