Merge KTX2 texture containers #461
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: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| env: | |
| CARGO_TERM_COLOR: always | |
| TECS_WERROR: "1" | |
| jobs: | |
| rust: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - run: cargo fmt --all -- --check | |
| - run: cargo clippy --locked --workspace --all-targets -- -D warnings | |
| - if: runner.os == 'Windows' | |
| run: cargo check --locked --workspace --all-targets | |
| - if: runner.os != 'Windows' | |
| run: cargo test --locked --workspace --all-targets | |
| engine: | |
| runs-on: macos-15 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - run: brew update | |
| - run: cargo xtask deps | |
| - run: cargo xtask check | |
| - run: cargo xtask format-check | |
| - run: cargo xtask test | |
| - run: cargo xtask test-package --preset macos-arm64 | |
| docs: | |
| runs-on: macos-15 | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - run: brew update | |
| - run: brew install luajit luarocks | |
| - run: cargo xtask dev-tools | |
| - run: cargo xtask docs-check | |
| - if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| run: cargo xtask docs-build | |
| - if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: out/docs | |
| deploy-docs: | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| needs: docs | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pages: write | |
| id-token: write | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| concurrency: | |
| group: github-pages | |
| cancel-in-progress: false | |
| steps: | |
| - id: deployment | |
| uses: actions/deploy-pages@v4 |