Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: CI
on:
on:
pull_request:
push:
branches:
Expand All @@ -20,7 +20,7 @@ jobs:
- 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: sudo apt-get update && sudo apt-get install --no-install-recommends libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev
- run: cargo check --workspace --all-features --all-targets

check-no-defaults:
Expand All @@ -29,7 +29,7 @@ jobs:
- 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: sudo apt-get update && sudo apt-get install --no-install-recommends libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev
- run: cargo check --workspace --no-default-features

clippy:
Expand All @@ -38,7 +38,7 @@ jobs:
- 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: sudo apt-get update && sudo apt-get install --no-install-recommends libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev
- run: rustup component add clippy
- run: cargo clippy --workspace --all-features --all-targets -- -D warnings

Expand All @@ -48,18 +48,18 @@ jobs:
- 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: sudo apt-get update && sudo apt-get install --no-install-recommends libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev
- run: cargo doc --workspace --all-features --no-deps --document-private-items
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: sudo apt-get update && sudo apt-get install --no-install-recommends libasound2-dev libudev-dev libwayland-dev libxkbcommon-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
Expand All @@ -69,5 +69,5 @@ jobs:
# - 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: sudo apt-get update && sudo apt-get install --no-install-recommends libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev
# - run: cargo test --workspace --all-features --doc
31 changes: 30 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,30 @@
/target
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/*.code-snippets

# Local History for Visual Studio Code
.history/

# Built Visual Studio Code Extensions
*.vsix

# Generated by Cargo
# will have compiled files and executables
debug/
target/

# These are backup files generated by rustfmt
**/*.rs.bk

# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb

# Compiled SPIR-V shaders
**/*.spv

# Bevy assets
imported_assets/
.web-asset-cache
27 changes: 21 additions & 6 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,26 @@
"version": "2.0.0",
"tasks": [
{
"label": "start",
"label": "run",
"type": "shell",
"command": "cargo watch -x 'run --features bevy/dynamic_linking'",
"options": {},
"problemMatcher": []
}
]
"command": "cargo run --features bevy/dynamic_linking",
"options": {
"env": {
"RUST_BACKTRACE": "1",
},
},
"problemMatcher": [],
},
{
"label": "run (watch)",
"type": "shell",
"command": "bacon run -- --features bevy/dynamic_linking",
"options": {
"env": {
"RUST_BACKTRACE": "1",
},
},
"problemMatcher": [],
},
],
}
Loading