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:
|
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:
|
||||||
|
|||||||
Reference in New Issue
Block a user