Improved 2D rendering effects #119
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI build | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| check-fmt: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Check formatting | |
| run: cargo fmt -- --check | |
| doc: | |
| runs-on: ubuntu-latest | |
| env: | |
| RUSTDOCFLAGS: -D warnings | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Cargo doc | |
| run: cargo doc | |
| build-native: | |
| runs-on: ubuntu-latest | |
| env: | |
| RUSTFLAGS: -D warnings | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - run: sudo apt-get install -y cmake libxcb-composite0-dev | |
| - name: Clippy | |
| run: cargo clippy | |
| - name: Clippy kiss3d | |
| run: cargo clippy | |
| - name: Build kiss3d | |
| run: cargo build --verbose -p kiss3d; | |
| - name: Build kiss3d (+ egui) | |
| run: cargo build --verbose -p kiss3d --features egui; | |
| - name: Run tests | |
| run: cargo test | |
| build-wasm: | |
| runs-on: ubuntu-latest | |
| env: | |
| RUSTFLAGS: -D warnings | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - run: rustup target add wasm32-unknown-unknown | |
| - name: build kiss3d | |
| run: cargo build --verbose --target wasm32-unknown-unknown; | |
| # Instantiate every shader variant on a real (software) GPU backend, so any | |
| # variant that fails to compile on the device is caught. `mesa-vulkan-drivers` | |
| # provides lavapipe, a software Vulkan device, so the GPU-less runner can create a | |
| # wgpu device. See `src/shader_validity.rs`. | |
| shader-validity: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - run: sudo apt-get update && sudo apt-get install -y cmake libxcb-composite0-dev mesa-vulkan-drivers vulkan-tools | |
| - name: Instantiate all shader variants | |
| run: WGPU_BACKEND=vulkan cargo test --lib shader_validity -- --nocapture | |
| # If this fails, consider changing your text or adding something to .typos.toml | |
| # You can find typos here: https://crates.io/crates/typos' | |
| typos: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: check typos | |
| uses: crate-ci/typos@v1.23.2 |