-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move benchmarking to it’s own workflow file, only run it on main and …
…tags. Signed-off-by: Hiram Chirino <[email protected]>
- Loading branch information
Showing
2 changed files
with
26 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|