rusting_engine 1.0.2

Vulkan 3D game engine with GPU-accelerated physics for massive physics-heavy scenes
name: CI

# CMake 4 removed compatibility below 3.5. shaderc-sys 0.8 still contains
# third-party CMake files with an older policy declaration.
env:
  CMAKE_POLICY_VERSION_MINIMUM: "3.5"

on:
  push:
  pull_request:

jobs:
  rust:
    name: Rust checks (${{ matrix.os }})
    strategy:
      fail-fast: false
      matrix:
        os: [ubuntu-latest, windows-latest]
    runs-on: ${{ matrix.os }}
    steps:
      - uses: actions/checkout@v4
      - uses: dtolnay/rust-toolchain@stable
        with:
          components: rustfmt, clippy
      - uses: Swatinem/rust-cache@v2
      - name: Formatting
        run: cargo fmt --all -- --check
      - name: Strict Clippy
        run: cargo clippy --workspace --all-targets -- -D warnings
      - name: Tests
        run: cargo test --workspace --all-targets
      - name: Documentation tests
        run: cargo test --workspace --doc