Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/bench-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Benchmark build

# Compile `chia-pos2` Criterion benchmarks only (`--no-run`). Does not execute them.

on:
push:
branches:
- main
tags:
- "**"
pull_request:
branches:
- "**"

concurrency:
group: ${{ github.event_name == 'pull_request' && format('{0}-{1}', github.workflow_ref, github.event.pull_request.number) || github.run_id }}
cancel-in-progress: true

permissions:
contents: read

jobs:
compile-benches:
name: Compile benches (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-24.04
- macos-14
- windows-2022
steps:
- name: Checkout code
uses: actions/checkout@v5

- name: Set up Rust
uses: dtolnay/rust-toolchain@1.85.0

- name: Build benchmark targets (no run)
run: cargo bench -p chia-pos2 --no-run
Loading
Loading