mirror of
https://github.com/biomejs/biome.git
synced 2025-12-23 08:21:13 +00:00
Some checks are pending
CI on main / Test (push) Waiting to run
CI on main / Format Rust Files (push) Waiting to run
CI on main / Lint Rust Files (push) Waiting to run
CI on main / Check Dependencies (push) Waiting to run
CI on main / Test262 Coverage (push) Waiting to run
Release / Release (push) Waiting to run
Release / version (push) Blocked by required conditions
Release / Package darwin-arm64 (push) Blocked by required conditions
Release / Package darwin-x64 (push) Blocked by required conditions
Release / Package linux-arm64-musl (push) Blocked by required conditions
Release / Package linux-x64-musl (push) Blocked by required conditions
Release / Package win32-arm64 (push) Blocked by required conditions
Release / Package win32-x64 (push) Blocked by required conditions
Release / Package linux-arm64 (push) Blocked by required conditions
Release / Package linux-x64 (push) Blocked by required conditions
Release / Build WASM (push) Blocked by required conditions
Release / Package JavaScript APIs (push) Blocked by required conditions
Release / Publish CLI (push) Blocked by required conditions
Release / Publish JS API (push) Blocked by required conditions
Repository dispatch on main / Build @biomejs/wasm-web (push) Waiting to run
Repository dispatch on main / Repository dispatch (push) Blocked by required conditions
78 lines
2.1 KiB
YAML
78 lines
2.1 KiB
YAML
name: Benchmarks CSS
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
types: [ opened, synchronize ]
|
|
branches:
|
|
- main
|
|
- next
|
|
paths:
|
|
- 'Cargo.lock'
|
|
- 'crates/biome_css_analyze/**/*.rs'
|
|
- 'crates/biome_css_formatter/**/*.rs'
|
|
- 'crates/biome_css_parser/**/*.rs'
|
|
- 'crates/biome_css_*/**/*.rs'
|
|
- 'crates/biome_formatter/**/*.rs'
|
|
- 'crates/biome_rowan/**/*.rs'
|
|
- 'crates/biome_parser/**/*.rs'
|
|
push:
|
|
branches:
|
|
- main
|
|
- next
|
|
paths:
|
|
- 'Cargo.lock'
|
|
- 'crates/biome_css_analyze/**/*.rs'
|
|
- 'crates/biome_css_formatter/**/*.rs'
|
|
- 'crates/biome_css_parser/**/*.rs'
|
|
- 'crates/biome_css_*/**/*.rs'
|
|
- 'crates/biome_formatter/**/*.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_css_parser
|
|
- biome_css_formatter
|
|
- biome_css_analyze
|
|
|
|
steps:
|
|
|
|
- name: Checkout PR Branch
|
|
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.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@76578c2a7ddd928664caa737f0e962e3085d4e7c # v3.8.1
|
|
timeout-minutes: 50
|
|
with:
|
|
run: cargo codspeed run
|
|
token: ${{ secrets.CODSPEED_TOKEN }}
|