Skip to content

Commit

Permalink
Move Chunks things from Client to Player
Browse files Browse the repository at this point in the history
Also made Chunk handling more robust
  • Loading branch information
Snowiiii committed Oct 28, 2024
1 parent ba6f50a commit e0dd8d6
Show file tree
Hide file tree
Showing 14 changed files with 308 additions and 285 deletions.
23 changes: 5 additions & 18 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:

env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-Dwarnings"

jobs:
format:
Expand All @@ -15,12 +16,9 @@ jobs:
matrix:
toolchain:
- stable

steps:
- uses: actions/checkout@v4

- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}

- run: cargo fmt --check
clippy:
name: Run lints
Expand All @@ -29,27 +27,21 @@ jobs:
matrix:
toolchain:
- stable

steps:
- uses: actions/checkout@v4

- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}

- run: cargo clippy --all-targets --all-features --no-default-features -- -D warnings
- run: cargo clippy --all-targets --all-features --no-default-features
build_and_test:
name: Build project and test
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
toolchain:
- stable

steps:
- uses: actions/checkout@v4

- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}

- run: cargo build --verbose
- run: cargo test --verbose
build_release:
name: Build project in release
Expand All @@ -59,12 +51,10 @@ jobs:
os: [ubuntu-latest, windows-latest, macos-latest]
toolchain:
- stable

steps:
- uses: actions/checkout@v4

- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}

- run: cargo build --verbose --release
- name: Export executable
uses: actions/upload-artifact@v4
Expand All @@ -79,10 +69,7 @@ jobs:
matrix:
toolchain:
- stable

steps:
- uses: actions/checkout@v4

- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}

- run: cargo clippy --release --all-targets --all-features --no-default-features -- -D warnings
- run: cargo clippy --release --all-targets --all-features --no-default-features
Loading

0 comments on commit e0dd8d6

Please sign in to comment.