Skip to content

feat: ship csp CLI in the code-search-please crate for cargo install #29

feat: ship csp CLI in the code-search-please crate for cargo install

feat: ship csp CLI in the code-search-please crate for cargo install #29

Workflow file for this run

name: CodSpeed
on:
push:
branches:
- main
pull_request:
# `workflow_dispatch` allows CodSpeed to trigger backtest
# performance analysis in order to generate initial data.
workflow_dispatch:
permissions:
contents: read
id-token: write # for OpenID Connect authentication with CodSpeed
concurrency:
group: codspeed-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
benchmarks:
name: Run benchmarks
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
with:
persist-credentials: false
# The Rust toolchain (channel 1.94.1) is selected by rust-toolchain.toml.
# setup-rust handles caching and installs the cargo-codspeed binary.
- name: Setup Rust toolchain, cache and cargo-codspeed binary
uses: moonrepo/setup-rust@cafffba5d5c8bc38a5120e6e60f3561d541a47cd # v0
with:
cache-target: release
bins: cargo-codspeed
- name: Build the benchmark target(s)
run: cargo codspeed build --workspace
- name: Run the benchmarks
uses: CodSpeedHQ/action@a4a36bb07c0638b0b4ca52bf1f3dad1b4289e52f # v4.18.1
with:
mode: simulation
run: cargo codspeed run