chore: release 0.16.0 #94
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 | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| check: | |
| name: Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Cache cargo registry and build | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Install system dependencies | |
| # winit needs libxkbcommon; fontconfig is dlopen'd at runtime via the | |
| # fontique `fontconfig-dlopen` feature (no -dev headers needed). | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libxkbcommon-dev | |
| - name: Check formatting | |
| run: cargo fmt --all -- --check | |
| - name: Clippy | |
| run: cargo clippy --all-targets --all-features -- -D warnings | |
| - name: Build | |
| run: cargo build --verbose | |
| # Guard the reduced-feature library paths: `--all-features` can't catch a module | |
| # that uses a feature-gated dep while being registered ungated (the render-only / | |
| # editor-only consumers pull neither winit nor the app stack). | |
| - name: Build (render-only, no default features) | |
| run: cargo build --no-default-features --verbose | |
| - name: Build (editor, no app) | |
| run: cargo build --no-default-features --features editor --verbose | |
| - name: Run tests | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GH_API_TOKEN }} | |
| run: cargo test --verbose | |
| - name: Package check | |
| run: cargo publish --dry-run --locked |