Skip to content
Draft
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
1 change: 1 addition & 0 deletions .github/actionlint.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
self-hosted-runner:
labels:
- "codspeed-macro"
- 8core_ubuntu_latest_runner
- 16core_windows_latest_runner
- windows_arm64_2025_large
Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: CodSpeed

on:
push:
branches:
- "feature/codspeed"
pull_request:
types: [opened, synchronize, closed]
branches:
- main
- "feature/codspeed"

jobs:
benchmarks:
name: Run benchmarks
runs-on: codspeed-macro
env:
RUST_BACKTRACE: full
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332

- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y tar bzip2

- name: Setup rust toolchain, cache and cargo-codspeed binary
uses: moonrepo/setup-rust@e013866c4215f77c925f42f60257dec7dd18836e
with:
channel: stable
cache-target: release
bins: cargo-codspeed

- name: Build the benchmark target(s)
run: cargo codspeed build -p pixi_bench

- name: Run the benchmarks
uses: CodSpeedHQ/action@cc824aeb2c86848c39cf722ab4c2b6c5bf290530
with:
run: |
export PATH="~/.cargo/bin:$PATH"
cargo codspeed run -p pixi_bench
mode: walltime
token: ${{ secrets.CODSPEED_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ jobs:
with:
save-if: ${{ github.ref == 'refs/heads/main' }}
- run: |
for package in $(cargo metadata --no-deps --format-version=1 | jq -r '.packages[] | .name'); do
for package in $(cargo metadata --no-deps --format-version=1 | jq -r '.packages[] | select(.name != "pixi_bench") | .name'); do
cargo rustdoc -p "$package" --all-features -- -D warnings -W unreachable-pub
done

Expand Down
Loading
Loading