From ffeb3b0617df77c5a64f3d3ca3aed5aa00e922b4 Mon Sep 17 00:00:00 2001 From: imrn99 <95699343+imrn99@users.noreply.github.com> Date: Tue, 22 Oct 2024 10:07:26 +0200 Subject: [PATCH] ci: add test & build without features --- .github/workflows/build.yml | 3 ++- .github/workflows/tests.yml | 11 ++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 200e4ff..3b350b0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,7 +8,6 @@ on: env: CARGO_TERM_COLOR: always - # RUSTFLAGS: "-D warnings" jobs: build_crates: @@ -25,6 +24,8 @@ jobs: - uses: Swatinem/rust-cache@v2 - name: Build main crate run: cargo build -p integraal --all-features + - name: Build main crate (no features) + run: cargo build -p integraal build_examples: name: Build examples for ${{ matrix.os }} strategy: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4e02ed0..7234d9f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,7 +8,6 @@ on: env: CARGO_TERM_COLOR: always - # RUSTFLAGS: "-D warnings" jobs: format: @@ -31,6 +30,16 @@ jobs: - uses: Swatinem/rust-cache@v2 - name: Run Clippy run: cargo clippy --all --all-features + clippy-no-feat: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + with: + submodules: recursive + - uses: dtolnay/rust-toolchain@stable + - uses: Swatinem/rust-cache@v2 + - name: Run Clippy + run: cargo clippy --all tests: runs-on: ubuntu-22.04 steps: