add simple ci and allow annoying lints

Signed-off-by: Schmarni <marnistromer@gmail.com>
This commit is contained in:
Schmarni
2024-10-21 23:18:30 +02:00
parent 81b65c4718
commit da659899d4
6 changed files with 68 additions and 2 deletions

51
.github/workflows/ci.yaml vendored Normal file
View 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: .

View File

@@ -43,3 +43,7 @@ wgpu = { version = "0.20", features = ["vulkan-portability"] }
openxr = { version = "0.18.0", features = ["mint", "static"] } openxr = { version = "0.18.0", features = ["mint", "static"] }
winapi = { version = "0.3.9", optional = true } winapi = { version = "0.3.9", optional = true }
d3d12 = { version = "0.20", features = ["libloading"], optional = true } d3d12 = { version = "0.20", features = ["libloading"], optional = true }
[lints.clippy]
too_many_arguments = "allow"
type_complexity = "allow"

View File

@@ -17,3 +17,7 @@ wgpu = "0.19.3"
wgpu-hal = "0.19.3" wgpu-hal = "0.19.3"
bevy_mod_xr = { path = "../bevy_xr", version = "0.1.0-rc1" } bevy_mod_xr = { path = "../bevy_xr", version = "0.1.0-rc1" }
[lints.clippy]
too_many_arguments = "allow"
type_complexity = "allow"

View File

@@ -11,3 +11,7 @@ keywords = ["gamedev", "bevy", "Xr", "Vr"]
[dependencies] [dependencies]
bevy.workspace = true bevy.workspace = true
[lints.clippy]
too_many_arguments = "allow"
type_complexity = "allow"

View File

@@ -1,5 +1,4 @@
use bevy::{ use bevy::{
app::Plugin,
ecs::{component::Component, entity::Entity, world::Command}, ecs::{component::Component, entity::Entity, world::Command},
hierarchy::BuildWorldChildren, hierarchy::BuildWorldChildren,
log::{error, warn}, log::{error, warn},
@@ -8,7 +7,7 @@ use bevy::{
}; };
use crate::{ use crate::{
session::{XrSessionCreated, XrTrackingRoot}, session:: XrTrackingRoot,
spaces::XrSpaceLocationFlags, spaces::XrSpaceLocationFlags,
}; };
pub const HAND_JOINT_COUNT: usize = 26; pub const HAND_JOINT_COUNT: usize = 26;

View File

@@ -15,3 +15,7 @@ bevy_mod_openxr = { path = "../bevy_openxr", version = "0.1.0-rc1" }
[target.'cfg(not(target_family = "wasm"))'.dependencies] [target.'cfg(not(target_family = "wasm"))'.dependencies]
openxr = "0.18.0" openxr = "0.18.0"
[lints.clippy]
too_many_arguments = "allow"
type_complexity = "allow"