release: v1.9.3 #4336
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Benchmarks | |
on: | |
workflow_dispatch: | |
pull_request: | |
types: [ opened, synchronize ] | |
branches: | |
- main | |
paths: | |
- 'Cargo.lock' | |
- 'crates/**_parser/**/*.rs' | |
- 'crates/**_formatter/**/*.rs' | |
- 'crates/**_analyze/**/*.rs' | |
push: | |
branches: | |
- main | |
paths: | |
- 'Cargo.lock' | |
- 'crates/**_parser/**/*.rs' | |
- 'crates/**_formatter/**/*.rs' | |
- 'crates/**_analyze/**/*.rs' | |
env: | |
RUST_LOG: info | |
jobs: | |
bench: | |
permissions: | |
pull-requests: write | |
name: Bench | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout PR Branch | |
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | |
with: | |
ref: ${{ steps.sha.outputs.result }} | |
- name: Install toolchain | |
uses: moonrepo/setup-rust@e013866c4215f77c925f42f60257dec7dd18836e # v1.2.1 | |
with: | |
channel: stable | |
cache-target: release | |
bins: cargo-codspeed | |
cache-base: main | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Compile | |
run: cargo codspeed build --features codspeed -p xtask_bench | |
- name: Run the benchmarks | |
uses: CodSpeedHQ/action@v3 | |
timeout-minutes: 30 | |
with: | |
run: cargo codspeed run | |
token: ${{ secrets.CODSPEED_TOKEN }} |