Skip to content

chore: refactor global type system to accommodate further extensions #69

chore: refactor global type system to accommodate further extensions

chore: refactor global type system to accommodate further extensions #69

name: Benchmarks Tailwind
on:
workflow_dispatch:
merge_group:
pull_request:
types: [ opened, synchronize ]
branches:
- main
- next
paths:
- "Cargo.lock"
- "crates/biome_tailwind_parser/**/*.rs"
- "crates/biome_tailwind_*/**/*.rs"
- "crates/biome_rowan/**/*.rs"
- "crates/biome_parser/**/*.rs"
push:
branches:
- main
- next
paths:
- "Cargo.lock"
- "crates/biome_tailwind_parser/**/*.rs"
- "crates/biome_tailwind_*/**/*.rs"
- "crates/biome_rowan/**/*.rs"
- "crates/biome_parser/**/*.rs"
env:
RUST_LOG: info
jobs:
bench:
permissions:
contents: read
pull-requests: write
name: Bench
runs-on: depot-ubuntu-24.04-arm-16
strategy:
matrix:
package:
- biome_tailwind_parser
steps:
- name: Checkout PR Branch
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- name: Install toolchain
uses: moonrepo/setup-rust@ede6de059f8046a5e236c94046823e2af11ca670 # v1.2.2
with:
channel: stable
cache-target: release
bins: cargo-codspeed
cache-base: main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Compile
timeout-minutes: 20
run: cargo codspeed build -p ${{ matrix.package }}
env:
CARGO_BUILD_JOBS: 3 # Default is 4 (equals to the vCPU count of the runner), which leads OOM on cargo build
- name: Run the benchmarks
uses: CodSpeedHQ/action@346a2d8a8d9d38909abd0bc3d23f773110f076ad # v4.4.1
timeout-minutes: 50
with:
mode: simulation
run: cargo codspeed run
token: ${{ secrets.CODSPEED_TOKEN }}