name: Pixl

on:
  pull_request:
    branches: [ "*" ]

env:
  CARGO_TERM_COLOR: always
  RUSTFLAGS: "-Dwarnings"

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v4
    - name: Install deps
      run: sudo apt install mesa-utils libglu1-mesa-dev freeglut3-dev mesa-common-dev libglew-dev libglfw3-dev libglm-dev libao-dev libmpg123-dev libxinerama-dev libwayland-dev libxkbcommon-dev libx11-dev libxcursor-dev
    - name: Build
      run: cargo build --verbose
    - name: Run tests
      run: cargo test --verbose
    - name: Run Clippy lints
      run: cargo clippy -- -Dwarnings
#   - name: Build examples
#     run: cargo build --verbose
#     working-directory: examples
