mirror of
https://github.com/floor-licker/polyfill-rs.git
synced 2026-08-24 01:48:08 +00:00
ci: run no-alloc hot-path tests as separate job
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user