List and stop systems, and read the state stack #467
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 | |
| env: | |
| TECS_EXPECT_GPU_DRIVER: metal | |
| 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 | |
| engine-vulkan: | |
| runs-on: ubuntu-latest | |
| env: | |
| LIBGL_ALWAYS_SOFTWARE: "1" | |
| SDL_GPU_DRIVER: vulkan | |
| TECS_EXPECT_GPU_DRIVER: vulkan | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| build-essential cmake ninja-build pkg-config luajit xvfb \ | |
| libasound2-dev libdbus-1-dev libdrm-dev libegl1-mesa-dev \ | |
| libgbm-dev libpulse-dev libudev-dev libvulkan-dev \ | |
| libwayland-dev libx11-dev libxcursor-dev libxext-dev \ | |
| libxfixes-dev libxi-dev libxkbcommon-dev libxrandr-dev \ | |
| mesa-vulkan-drivers wayland-protocols | |
| - run: cargo xtask dev-tools | |
| - run: xvfb-run -a cargo xtask test --preset linux-x64 | |
| 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 |