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