ci: fix iai benches the sequel (#7562)

This commit is contained in:
Oliver Nordbjerg
2024-04-11 01:37:09 +02:00
committed by GitHub
parent b8b735e8e6
commit 05d9cf950b

View File

@ -9,6 +9,7 @@ on:
env: env:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always
BASELINE: base BASELINE: base
IAI_CALLGRIND_RUNNER: iai-callgrind-runner
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
@ -19,7 +20,7 @@ jobs:
iai: iai:
runs-on: runs-on:
group: Reth group: Reth
# Only run benchmarks in merge groups # Only run benchmarks in merge groups and on main
if: github.event_name != 'pull_request' if: github.event_name != 'pull_request'
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@ -33,11 +34,16 @@ jobs:
uses: taiki-e/install-action@cargo-binstall uses: taiki-e/install-action@cargo-binstall
- name: Install iai-callgrind-runner - name: Install iai-callgrind-runner
run: | run: |
echo "::group::Install"
version=$(cargo metadata --format-version=1 |\ version=$(cargo metadata --format-version=1 |\
jq '.packages[] | select(.name == "iai-callgrind").version' |\ jq '.packages[] | select(.name == "iai-callgrind").version' |\
tr -d '"' tr -d '"'
) )
cargo binstall iai-callgrind-runner --version $version --no-confirm --no-symlinks cargo binstall iai-callgrind-runner --version $version --no-confirm --no-symlinks --force
echo "::endgroup::"
echo "::group::Verification"
which iai-callgrind-runner
echo "::endgroup::"
- name: Checkout base - name: Checkout base
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with: