ci: run no-alloc hot-path tests as separate job

This commit is contained in:
floor-licker
2026-01-30 19:37:46 -05:00
parent c1b763309b
commit 3b0765fbec
+22 -2
View File
@@ -35,8 +35,8 @@ jobs:
- name: Run clippy - 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 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 - name: Run tests (excluding no-alloc hot paths)
run: cargo test --all-features run: cargo test --all-features -- --skip no_alloc_
- name: Build examples - name: Build examples
run: | run: |
@@ -65,3 +65,23 @@ jobs:
- name: Run security audit - name: Run security audit
run: cargo audit 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