Skip to content

Merge branch 'renderer-frame-pipeline-refactor' #180

Merge branch 'renderer-frame-pipeline-refactor'

Merge branch 'renderer-frame-pipeline-refactor' #180

Workflow file for this run

# Builds the Rust workspace and runs unit / integration tests on all major desktop OSes.
# .NET (`generators/`) is covered by `dotnet-ci.yml`.
name: Rust CI
"on":
push:
branches: [main, master]
pull_request:
workflow_dispatch:
concurrency:
group: rust-ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
build-test:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4
# `materials::registry` wgpu smoke test requires an adapter when `CI` is set (GitHub sets it by default).
- name: Install Linux Vulkan (Mesa / Lavapipe)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y mesa-vulkan-drivers vulkan-tools
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- name: Check formatting
run: cargo fmt --all -- --check
- uses: uncenter/setup-taplo@v2
with:
version: "0.10.0"
- name: Check TOML formatting (taplo)
run: taplo fmt --check --diff
- name: Clippy
run: cargo clippy --all-targets --all-features -- -W clippy::all -D warnings
- name: cargo build
run: cargo build --workspace --locked
- name: cargo test
run: cargo test --workspace --locked
# Spawns the renderer in `--headless` (no window; offscreen PNG), drives the full IPC
# handshake + sphere upload + scene submission, and compares the rendered PNG against the
# committed golden via image-compare SSIM. On Linux CI the only Vulkan ICD is typically
# lavapipe (mesa-vulkan-drivers). Linux-only; Windows/macOS runners often lack a usable
# Vulkan stack for this harness.
#
# Build the `dev-fast` renderer (workspace `cargo build` is debug-only; the harness defaults
# to `target/dev-fast/renderide` when passed `--dev-fast`). `cargo run --profile dev-fast`
# for renderide-test does not build the renderer binary by itself.
- name: Golden image integration test
if: runner.os == 'Linux'
run: |
cargo build --locked -p renderide
cargo run --locked -p renderide-test -- check