Skip to content

feature: Add PLY format support #475

feature: Add PLY format support

feature: Add PLY format support #475

Workflow file for this run

name: Rust
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust toolchain
run: rustup update --no-self-update stable
- uses: Swatinem/rust-cache@v2
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
render:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust toolchain
run: rustup update --no-self-update stable
- uses: extractions/setup-just@v1
- uses: Swatinem/rust-cache@v2
- name: Build release
run: cargo build --release --verbose
- name: Render all test images
run: just all-scenes --samples 1
- uses: actions/upload-artifact@v3
with:
name: renders
path: renders/*
cargo-deny:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust toolchain
run: rustup update --no-self-update stable
- uses: EmbarkStudios/cargo-deny-action@v1
lint: # inspired by https://github.com/EmbarkStudios/rust-gpu/blob/main/.github/workflows/ci.yaml
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust toolchain
run: rustup update --no-self-update stable
- name: Install rust-toolchain # cargo version is a random command that forces the installation of rust-toolchain
run: cargo version
- name: cargo fetch
run: cargo fetch
- name: Rustfmt
run: cargo fmt --all -- --check
- name: Check docs are valid
run: RUSTDOCFLAGS=-Dwarnings cargo doc --no-deps
- name: Clippy
run: cargo clippy