diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..2cb3cb6 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,51 @@ +name: CI +on: + push: + branches: + - main + pull_request: + workflow_dispatch: + +jobs: + check_native: + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, windows-latest] + + name: Check ${{ matrix.os }} + runs-on: ${{ matrix.os }} + + env: + CARGO_TERM_COLOR: always + + steps: + - uses: actions/checkout@v4 + + - run: rustup toolchain install stable --profile minimal --no-self-update + + - uses: ./ + with: + workspaces: . + + - run: cargo check + working-directory: . + + check_wasm: + name: Check Wasm + runs-on: ubuntu-latest + + env: + CARGO_TERM_COLOR: always + + steps: + - uses: actions/checkout@v4 + + - run: rustup toolchain install stable --profile minimal --target wasm32-unknown-unknown --no-self-update + + - uses: ./ + with: + workspaces: . + + - run: cargo check --target wasm32-unknown-unknown + working-directory: . diff --git a/crates/bevy_openxr/Cargo.toml b/crates/bevy_openxr/Cargo.toml index 2b885b8..514ee8d 100644 --- a/crates/bevy_openxr/Cargo.toml +++ b/crates/bevy_openxr/Cargo.toml @@ -43,3 +43,7 @@ wgpu = { version = "0.20", features = ["vulkan-portability"] } openxr = { version = "0.18.0", features = ["mint", "static"] } winapi = { version = "0.3.9", optional = true } d3d12 = { version = "0.20", features = ["libloading"], optional = true } + +[lints.clippy] +too_many_arguments = "allow" +type_complexity = "allow" diff --git a/crates/bevy_webxr/Cargo.toml b/crates/bevy_webxr/Cargo.toml index 78b671b..7e47cca 100644 --- a/crates/bevy_webxr/Cargo.toml +++ b/crates/bevy_webxr/Cargo.toml @@ -17,3 +17,7 @@ wgpu = "0.19.3" wgpu-hal = "0.19.3" bevy_mod_xr = { path = "../bevy_xr", version = "0.1.0-rc1" } + +[lints.clippy] +too_many_arguments = "allow" +type_complexity = "allow" diff --git a/crates/bevy_xr/Cargo.toml b/crates/bevy_xr/Cargo.toml index e305855..1af524c 100644 --- a/crates/bevy_xr/Cargo.toml +++ b/crates/bevy_xr/Cargo.toml @@ -11,3 +11,7 @@ keywords = ["gamedev", "bevy", "Xr", "Vr"] [dependencies] bevy.workspace = true + +[lints.clippy] +too_many_arguments = "allow" +type_complexity = "allow" diff --git a/crates/bevy_xr/src/hands.rs b/crates/bevy_xr/src/hands.rs index 17a6fd5..7f222ab 100644 --- a/crates/bevy_xr/src/hands.rs +++ b/crates/bevy_xr/src/hands.rs @@ -1,5 +1,4 @@ use bevy::{ - app::Plugin, ecs::{component::Component, entity::Entity, world::Command}, hierarchy::BuildWorldChildren, log::{error, warn}, @@ -8,7 +7,7 @@ use bevy::{ }; use crate::{ - session::{XrSessionCreated, XrTrackingRoot}, + session:: XrTrackingRoot, spaces::XrSpaceLocationFlags, }; pub const HAND_JOINT_COUNT: usize = 26; diff --git a/crates/bevy_xr_utils/Cargo.toml b/crates/bevy_xr_utils/Cargo.toml index 5f66274..ff299fa 100644 --- a/crates/bevy_xr_utils/Cargo.toml +++ b/crates/bevy_xr_utils/Cargo.toml @@ -15,3 +15,7 @@ bevy_mod_openxr = { path = "../bevy_openxr", version = "0.1.0-rc1" } [target.'cfg(not(target_family = "wasm"))'.dependencies] openxr = "0.18.0" + +[lints.clippy] +too_many_arguments = "allow" +type_complexity = "allow"