Skip to content

Add MIT LICENSE

Add MIT LICENSE #9

Workflow file for this run

name: CodSpeed
on:
push:
branches:
- "main"
pull_request:
workflow_dispatch:
jobs:
benchmarks:
name: Run benchmarks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup PNPM
uses: pnpm/action-setup@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- name: Setup rust toolchain, cache and cargo-codspeed binary
uses: moonrepo/setup-rust@v1
with:
channel: stable
cache-target: release
targets: wasm32-unknown-unknown
bins: cargo-codspeed, wasm-bindgen-cli, just, wasm-opt
- name: Build (WASM)
run: just build-wasm release
- name: Build the benchmark target(s)
run: cargo codspeed build
- name: Run the benchmarks
uses: CodSpeedHQ/action@v3
with:
run: cargo codspeed run && pnpm -C ./packages/benchmark-wasm run benchmark-codspeed
token: ${{ secrets.CODSPEED_TOKEN }}