From e1b72f839490806f1c09a0595fc9608c03e4b134 Mon Sep 17 00:00:00 2001 From: BiagioFesta <15035284+BiagioFesta@users.noreply.github.com> Date: Fri, 29 Dec 2023 14:14:57 +0100 Subject: [PATCH] ci: add benchmarks --- .github/workflows/ci.yml | 8 ++++++++ wtransport-proto/Cargo.toml | 3 +++ wtransport/Cargo.toml | 3 +++ 3 files changed, 14 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9111fedc..ee6db6d9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -80,3 +80,11 @@ jobs: uses: aig787/cargo-udeps-action@v1 with: args: "--all-targets" + + benches: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: boa-dev/criterion-compare-action@v3 + with: + branchName: ${{ github.base_ref }} diff --git a/wtransport-proto/Cargo.toml b/wtransport-proto/Cargo.toml index 9c7daa16..c9c6fe6e 100644 --- a/wtransport-proto/Cargo.toml +++ b/wtransport-proto/Cargo.toml @@ -12,6 +12,9 @@ readme = "../README.md" workspace = ".." rust-version = "1.70" +[lib] +bench = false + [[bench]] name = "datagram" harness = false diff --git a/wtransport/Cargo.toml b/wtransport/Cargo.toml index 7d4c3786..c631de97 100644 --- a/wtransport/Cargo.toml +++ b/wtransport/Cargo.toml @@ -12,6 +12,9 @@ readme = "../README.md" workspace = ".." rust-version = "1.70" +[lib] +bench = false + [[example]] name = "client" required-features = ["dangerous-configuration"]