add simple ci and allow annoying lints
Signed-off-by: Schmarni <marnistromer@gmail.com>
This commit is contained in:
51
.github/workflows/ci.yaml
vendored
Normal file
51
.github/workflows/ci.yaml
vendored
Normal file
@@ -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: .
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -11,3 +11,7 @@ keywords = ["gamedev", "bevy", "Xr", "Vr"]
|
||||
|
||||
[dependencies]
|
||||
bevy.workspace = true
|
||||
|
||||
[lints.clippy]
|
||||
too_many_arguments = "allow"
|
||||
type_complexity = "allow"
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user