Skip to content

refactor: s/self.cache.as_ref()/&self.cache #2576

refactor: s/self.cache.as_ref()/&self.cache

refactor: s/self.cache.as_ref()/&self.cache #2576

Workflow file for this run

name: Benchmark
permissions: {}
on:
workflow_dispatch:
pull_request:
types:
- opened
- synchronize
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: ${{ github.ref_name != 'main' }}
jobs:
benchmark:
name: Benchmark
runs-on: ubuntu-latest
permissions:
id-token: write # required for OIDC authentication with CodSpeed
steps:
- uses: taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1
- uses: oxc-project/setup-rust@ecabb7322a2ba5aeedb3612d2a40b86a85cee235 # v1.0.11
with:
cache-key: benchmark
save-cache: ${{ github.ref_name == 'main' }}
tools: cargo-codspeed
- uses: ./.github/actions/pnpm
- run: cargo codspeed build --features codspeed
env:
RUSTFLAGS: "-C debuginfo=1 -C strip=none"
- uses: CodSpeedHQ/action@346a2d8a8d9d38909abd0bc3d23f773110f076ad # v4.4.1
timeout-minutes: 30
with:
run: cargo codspeed run
mode: instrumentation