Skip to content

painting only visible elements #406

painting only visible elements

painting only visible elements #406

Workflow file for this run

name: Rust
on:
push:
branches: [ main, dev ]
pull_request:
branches: [ main, dev ]
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-C debuginfo=0 -D warnings"
jobs:
test:
runs-on: ubuntu-latest
name: Test
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Configure cache
uses: Swatinem/rust-cache@v2
- name: Run tests
run: cargo test --workspace --all-features --verbose
lint:
runs-on: ubuntu-latest
name: Lint
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- name: Rust fmt
run: cargo +nightly fmt -- --check
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Configure cache
uses: Swatinem/rust-cache@v2
- name: Clippy
run: cargo clippy --workspace --all-features --all-targets