Skip to content

feat(rust-plugin): pass PluginContext to JS (#628) #7

feat(rust-plugin): pass PluginContext to JS (#628)

feat(rust-plugin): pass PluginContext to JS (#628) #7

Workflow file for this run

name: codspeed-benchmarks
on:
push:
branches:
- 'main' # or "master"
paths:
- '**/*.rs'
- '**/*.toml'
- 'Cargo.lock'
- 'rust-toolchain.toml'
pull_request:
types: [opened, synchronize]
paths:
- '**/*.rs'
- '**/*.toml'
- 'Cargo.lock'
- 'rust-toolchain.toml'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: ${{ github.ref_name != 'main' }}
jobs:
benchmark:
name: Benchmark
runs-on: ubuntu-latest
steps:
- name: Checkout Branch
uses: actions/checkout@v4
with:
# Whether Pull submodules for additional files
submodules: false
- name: Install Rust
uses: moonrepo/setup-rust@v1
with:
bins: just, cargo-codspeed
cache-base: main
cache-target: release
- name: Install pnpm
uses: pnpm/action-setup@v3
- name: Install node
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Setup benchmark
run: just setup-bench
- name: Build the benchmark target(s)
run: cargo codspeed build -p bench
- name: Run the benchmarks
uses: CodSpeedHQ/action@v2
with:
run: cargo codspeed run -p bench
token: ${{ secrets.CODSPEED_TOKEN }}