Compare commits
2 commits
Author | SHA1 | Date | |
---|---|---|---|
edfb0be3c6 | |||
889b175daf |
|
@ -1,69 +0,0 @@
|
|||
name: Rust
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
rustfmt:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: https://github.com/dtolnay/rust-toolchain@nightly
|
||||
with:
|
||||
components: rustfmt
|
||||
- run: cargo fmt --all -- --check
|
||||
|
||||
clippy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y --no-install-recommends \
|
||||
g++ pkg-config libx11-dev libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev
|
||||
- uses: actions/checkout@v4
|
||||
- uses: https://github.com/dtolnay/rust-toolchain@1.79.0
|
||||
id: rust-toolchain
|
||||
with:
|
||||
components: clippy
|
||||
- uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/git
|
||||
~/.cargo/registry
|
||||
target
|
||||
key: "${{runner.os}} Rust+Clippy ${{steps.rust-toolchain.outputs.cachekey}}"
|
||||
- run: cargo clippy --locked --all-targets -- -D warnings
|
||||
env:
|
||||
RUSTFLAGS: "-D warnings"
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y --no-install-recommends \
|
||||
g++ pkg-config libx11-dev libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev
|
||||
- uses: actions/checkout@v4
|
||||
- uses: https://github.com/dtolnay/rust-toolchain@stable
|
||||
id: rust-toolchain
|
||||
- uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/git
|
||||
~/.cargo/registry
|
||||
target
|
||||
key: "${{runner.os}} Rust ${{steps.rust-toolchain.outputs.cachekey}}"
|
||||
- run: mkdir .ci-destdir
|
||||
- run: cargo install --path . --locked --root .
|
||||
- run: find .ci-destdir
|
||||
- uses: forgejo/upload-artifact@v3
|
||||
with:
|
||||
name: Powercreep
|
||||
path: |
|
||||
bin
|
||||
assets
|
2
.gitignore
vendored
|
@ -1,3 +1 @@
|
|||
/target
|
||||
*.nix
|
||||
.vscode/
|
3201
Cargo.lock
generated
22
Cargo.toml
|
@ -1,13 +1,14 @@
|
|||
[package]
|
||||
name = "powercreep"
|
||||
name = "game-jame"
|
||||
version = "0.1.0"
|
||||
publish = false
|
||||
edition = "2021"
|
||||
repository = "https://msrd0.dev/spielemarmelade/turtlegame"
|
||||
description = "turtlegame - the game from the turtleteam :)"
|
||||
|
||||
[workspace]
|
||||
resolver = "2"
|
||||
|
||||
|
||||
# Enable a small amount of optimization in debug mode
|
||||
[profile.dev]
|
||||
# opt-level = 1
|
||||
|
||||
# Enable high optimizations for dependencies (incl. Bevy), but not for our code:
|
||||
|
@ -15,15 +16,4 @@ resolver = "2"
|
|||
opt-level = 3
|
||||
|
||||
[dependencies]
|
||||
comfy = { version = "0.4.0", features = ["wayland"] }
|
||||
indexmap = "2"
|
||||
log = "0.4.22"
|
||||
|
||||
[build-dependencies]
|
||||
heck = "0.5"
|
||||
resvg = "0.42"
|
||||
|
||||
[patch.crates-io]
|
||||
# https://github.com/darthdeus/comfy/issues/101
|
||||
# https://github.com/darthdeus/comfy/pull/102
|
||||
comfy = { git = "https://github.com/Plonq/comfy/", branch = "101-fix-keyboard-events" }
|
||||
bevy = "0.14.0"
|
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 6.2 KiB |
Before Width: | Height: | Size: 7.5 KiB |
Before Width: | Height: | Size: 8.5 KiB |
Before Width: | Height: | Size: 8 KiB |
Before Width: | Height: | Size: 5.5 KiB |
Before Width: | Height: | Size: 5.6 KiB |
Before Width: | Height: | Size: 6.6 KiB |
Before Width: | Height: | Size: 6.2 KiB |
Before Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 4.6 KiB |
Before Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 4.6 KiB |
Before Width: | Height: | Size: 5.4 KiB |
Before Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 5.5 KiB |
Before Width: | Height: | Size: 6.4 KiB |
Before Width: | Height: | Size: 5.6 KiB |
Before Width: | Height: | Size: 6 KiB |
Before Width: | Height: | Size: 5.1 KiB |
Before Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 5.5 KiB |
Before Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 5.1 KiB |
Before Width: | Height: | Size: 5.1 KiB |
Before Width: | Height: | Size: 6 KiB |
Before Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 5 KiB |
Before Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 7 KiB |
Before Width: | Height: | Size: 6.2 KiB |
Before Width: | Height: | Size: 7.6 KiB |
Before Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 6.2 KiB |
Before Width: | Height: | Size: 5.4 KiB |
Before Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 4.6 KiB |
Before Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 7.9 KiB |
Before Width: | Height: | Size: 9.4 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 6.4 KiB |
Before Width: | Height: | Size: 338 KiB |
Before Width: | Height: | Size: 5.9 KiB |
Before Width: | Height: | Size: 338 KiB |
Before Width: | Height: | Size: 6.3 KiB |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 4.6 KiB |
Before Width: | Height: | Size: 5.3 KiB |
Before Width: | Height: | Size: 7.4 KiB |
Before Width: | Height: | Size: 5.5 KiB |
Before Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 5.1 KiB |
Before Width: | Height: | Size: 5 KiB |
Before Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 126 KiB |
Before Width: | Height: | Size: 6.8 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 298 KiB |
Before Width: | Height: | Size: 7.6 KiB |
Before Width: | Height: | Size: 6.4 KiB |
Before Width: | Height: | Size: 338 KiB |
Before Width: | Height: | Size: 5.9 KiB |
Before Width: | Height: | Size: 338 KiB |
Before Width: | Height: | Size: 6.3 KiB |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 4.6 KiB |
Before Width: | Height: | Size: 5.3 KiB |
Before Width: | Height: | Size: 7.4 KiB |
Before Width: | Height: | Size: 5.5 KiB |
Before Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 5.1 KiB |
Before Width: | Height: | Size: 5 KiB |
Before Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 126 KiB |
Before Width: | Height: | Size: 6.8 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 298 KiB |