Skip to content

Commit

Permalink
add simple ci and allow annoying lints
Browse files Browse the repository at this point in the history
Signed-off-by: Schmarni <marnistromer@gmail.com>
  • Loading branch information
Schmarni-Dev committed Oct 21, 2024
1 parent 81b65c4 commit da65989
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 2 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -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: .
4 changes: 4 additions & 0 deletions crates/bevy_openxr/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
4 changes: 4 additions & 0 deletions crates/bevy_webxr/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
4 changes: 4 additions & 0 deletions crates/bevy_xr/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@ keywords = ["gamedev", "bevy", "Xr", "Vr"]

[dependencies]
bevy.workspace = true

[lints.clippy]
too_many_arguments = "allow"
type_complexity = "allow"
3 changes: 1 addition & 2 deletions crates/bevy_xr/src/hands.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use bevy::{
app::Plugin,
ecs::{component::Component, entity::Entity, world::Command},
hierarchy::BuildWorldChildren,
log::{error, warn},
Expand All @@ -8,7 +7,7 @@ use bevy::{
};

use crate::{
session::{XrSessionCreated, XrTrackingRoot},
session:: XrTrackingRoot,
spaces::XrSpaceLocationFlags,
};
pub const HAND_JOINT_COUNT: usize = 26;
Expand Down
4 changes: 4 additions & 0 deletions crates/bevy_xr_utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit da65989

Please sign in to comment.