Skip to content

Commit

Permalink
Move benchmarking to it’s own workflow file, only run it on main and …
Browse files Browse the repository at this point in the history
…tags.

Signed-off-by: Hiram Chirino <[email protected]>
  • Loading branch information
chirino committed May 22, 2024
1 parent a8b185d commit 1c0321e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 15 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: Benchmark

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

jobs:
bench:
name: Benchmark
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: supercharge/[email protected]
with:
redis-version: 7
- uses: actions-rust-lang/setup-rust-toolchain@v1
- uses: Swatinem/rust-cache@v2
- uses: abelfodil/protoc-action@v1
with:
protoc-version: '3.19.4'
- run: cargo bench
15 changes: 0 additions & 15 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,21 +64,6 @@ jobs:
protoc-version: '3.19.4'
- run: cargo clippy --all-features --all-targets -- -D warnings

bench:
name: Bench
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: supercharge/[email protected]
with:
redis-version: 7
- uses: actions-rust-lang/setup-rust-toolchain@v1
- uses: Swatinem/rust-cache@v2
- uses: abelfodil/protoc-action@v1
with:
protoc-version: '3.19.4'
- run: cargo bench

kind:
name: Try in kind (Kubernetes in Docker)
runs-on: ubuntu-latest
Expand Down

0 comments on commit 1c0321e

Please sign in to comment.