mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
ci: fix iai benches the sequel (#7562)
This commit is contained in:
10
.github/workflows/bench.yml
vendored
10
.github/workflows/bench.yml
vendored
@ -9,6 +9,7 @@ on:
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
BASELINE: base
|
||||
IAI_CALLGRIND_RUNNER: iai-callgrind-runner
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
||||
@ -19,7 +20,7 @@ jobs:
|
||||
iai:
|
||||
runs-on:
|
||||
group: Reth
|
||||
# Only run benchmarks in merge groups
|
||||
# Only run benchmarks in merge groups and on main
|
||||
if: github.event_name != 'pull_request'
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@ -33,11 +34,16 @@ jobs:
|
||||
uses: taiki-e/install-action@cargo-binstall
|
||||
- name: Install iai-callgrind-runner
|
||||
run: |
|
||||
echo "::group::Install"
|
||||
version=$(cargo metadata --format-version=1 |\
|
||||
jq '.packages[] | select(.name == "iai-callgrind").version' |\
|
||||
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
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user