From b90421f4d39ba325e03961e3d45b54f058c46af8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Crozet?= Date: Sun, 24 Mar 2024 10:30:42 +0100 Subject: [PATCH] feat: add clippy check to CI --- .github/workflows/parry-ci-build.yml | 40 ++++++++++++++++------------ 1 file changed, 23 insertions(+), 17 deletions(-) diff --git a/.github/workflows/parry-ci-build.yml b/.github/workflows/parry-ci-build.yml index 61be0fca..21690d8a 100644 --- a/.github/workflows/parry-ci-build.yml +++ b/.github/workflows/parry-ci-build.yml @@ -13,28 +13,34 @@ jobs: check-fmt: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Check formatting - run: cargo fmt -- --check + - uses: actions/checkout@v3 + - name: Check formatting + run: cargo fmt -- --check + clippy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Clippy + run: cargo clippy build-native: runs-on: ubuntu-latest env: RUSTFLAGS: -D warnings steps: - - uses: actions/checkout@v3 - - run: sudo apt-get install -y cmake libxcb-composite0-dev - - name: Build parry2d - run: cargo build --verbose -p parry2d; - - name: Build parry3d - run: cargo build --verbose -p parry3d; - - name: Build parry2d SIMD - run: cd crates/parry2d; cargo build --verbose --features simd-stable; - - name: Build parry3d SIMD - run: cd crates/parry3d; cargo build --verbose --features simd-stable; - - name: Check serialization - run: cargo check --features bytemuck-serialize,serde-serialize,rkyv-serialize; - - name: Run tests - run: cargo test + - uses: actions/checkout@v3 + - run: sudo apt-get install -y cmake libxcb-composite0-dev + - name: Build parry2d + run: cargo build --verbose -p parry2d; + - name: Build parry3d + run: cargo build --verbose -p parry3d; + - name: Build parry2d SIMD + run: cd crates/parry2d; cargo build --verbose --features simd-stable; + - name: Build parry3d SIMD + run: cd crates/parry3d; cargo build --verbose --features simd-stable; + - name: Check serialization + run: cargo check --features bytemuck-serialize,serde-serialize,rkyv-serialize; + - name: Run tests + run: cargo test build-wasm: runs-on: ubuntu-latest env: