Skip to content

Commit

Permalink
feat: reexport bevy_vello, add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nixon-voxell committed May 22, 2024
1 parent fa6a6a7 commit e64d2fc
Show file tree
Hide file tree
Showing 5 changed files with 83 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @nixon-voxell
5 changes: 5 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# These are supported funding model platforms

github: [nixon-voxell]
ko_fi: voxelltech
patreon: voxelltech
74 changes: 74 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: CI
on:
pull_request:
push:
branches:
- main
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: rustup component add rustfmt
- run: cargo fmt --all -- --check

check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
- run: cargo check --workspace --all-features --all-targets

check-no-defaults:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
- run: cargo check --workspace --no-default-features

clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
- run: rustup component add clippy
- run: cargo clippy --workspace --all-features --all-targets -- -D warnings

doc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
- run: cargo doc --workspace --all-features --no-deps
env:
RUSTDOCFLAGS: -D warnings

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
- run: cargo test --workspace --all-features --all-targets

# Note: cargo test --all-targets disables doc tests, so we have to add this to test docs
doctest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
- run: cargo test --workspace --all-features --doc

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ edition = "2021"
license = "MIT OR Apache-2.0"

[dependencies]
bevy_vello = "0.3"
bevy = "0.13"
bevy_vello = "0.3"

[lints.clippy]
redundant_type_annotations = "warn"
Expand Down
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
pub use bevy_vello;

use bevy::{ecs::schedule::SystemConfigs, prelude::*};
use bevy_vello::{prelude::*, VelloPlugin};
use bezpath::VelloBezPath;
Expand Down

0 comments on commit e64d2fc

Please sign in to comment.