From 1c0321e6f40a97da640dcace736c1aa1cfe7ec3c Mon Sep 17 00:00:00 2001 From: Hiram Chirino Date: Wed, 22 May 2024 11:36:30 -0400 Subject: [PATCH] =?UTF-8?q?Move=20benchmarking=20to=20it=E2=80=99s=20own?= =?UTF-8?q?=20workflow=20file,=20only=20run=20it=20on=20main=20and=20tags.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Hiram Chirino --- .github/workflows/bench.yml | 26 ++++++++++++++++++++++++++ .github/workflows/rust.yml | 15 --------------- 2 files changed, 26 insertions(+), 15 deletions(-) create mode 100644 .github/workflows/bench.yml diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml new file mode 100644 index 00000000..eb16a0a6 --- /dev/null +++ b/.github/workflows/bench.yml @@ -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/redis-github-action@1.1.0 + 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 diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index c20ff16a..df8931c7 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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/redis-github-action@1.1.0 - 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