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
47 changes: 47 additions & 0 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Benchmarks

# spell-checker:ignore codspeed dtolnay Swatinem

on:
pull_request:
push:
branches:
- '*'

permissions:
contents: read # to fetch code (actions/checkout)

# End the current execution if there is a new changeset in the PR.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
benchmarks:
name: Run benchmarks (CodSpeed)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false

- uses: dtolnay/rust-toolchain@stable

- uses: Swatinem/rust-cache@v2

- name: Install cargo-codspeed
shell: bash
run: cargo install cargo-codspeed --locked

- name: Build benchmarks
shell: bash
run: cargo codspeed build

- name: Run benchmarks
uses: CodSpeedHQ/action@v4
env:
CODSPEED_LOG: debug
with:
mode: instrumentation
run: cargo codspeed run > /dev/null
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 @@ -181,7 +181,7 @@ jobs:
sudo rm -rf /usr/share/dotnet /opt/ghc /usr/local/lib/android /usr/local/share/boost /usr/share/swift /var/lib/apt/lists/*
- name: Execute tests
run: cargo test --locked --all-targets ${{ matrix.extra_args }}
run: cargo test --locked --lib --bins --tests ${{ matrix.extra_args }}
env:
CARGO_INCREMENTAL: "0"
RUSTC_WRAPPER: ""
Expand Down
Loading
Loading