diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9b389d1..a8b87fe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,8 +35,8 @@ jobs: - name: Run clippy run: cargo clippy --lib --bins --tests --benches --all-features -- -D warnings && cargo clippy --example benchmark_with_keepalive --example demo --example final_benchmark --example http2_tuning_benchmark --example performance_benchmark --example quick_demo --example snipe -- -D warnings - - name: Run tests - run: cargo test --all-features + - name: Run tests (excluding no-alloc hot paths) + run: cargo test --all-features -- --skip no_alloc_ - name: Build examples run: | @@ -64,4 +64,24 @@ jobs: run: cargo install cargo-audit - name: Run security audit - run: cargo audit \ No newline at end of file + run: cargo audit + + no_alloc: + name: No-alloc hot paths + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + + - name: Cache dependencies + uses: actions/cache@v4 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + + - name: Run no-alloc hot path tests + run: cargo test --all-features --test no_alloc_hot_paths