Files
HEDZReloaded/.github/workflows/ci.yml
extrawurst 7cfae285ed Crate unification (#88)
* move client/server/config into shared

* move platforms into shared

* move head drops into shared

* move tb_entities to shared

* reduce server to just a call into shared

* get solo play working

* fix server opening window

* fix fmt

* extracted a few more modules from client

* near completely migrated client

* fixed duplicate CharacterInputEnabled definition

* simplify a few things related to builds

* more simplifications

* fix warnings/check

* ci update

* address comments

* try fixing macos steam build

* address comments

* address comments

* CI tweaks with default client feature

---------

Co-authored-by: PROMETHIA-27 <electriccobras@gmail.com>
2025-12-18 12:31:22 -05:00

48 lines
1.1 KiB
YAML

name: ci
on:
pull_request:
push:
branches: ["master"]
jobs:
ci:
strategy:
matrix:
os: [[self-hosted, linux], [self-hosted, macos]]
runs-on: "${{ matrix.os }}"
steps:
- uses: actions/checkout@v4
- uses: cargo-bins/cargo-binstall@main
if: runner.os == 'linux'
- uses: extractions/setup-just@v1
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
components: clippy, rustfmt
- name: install linux dependencies
if: runner.os == 'linux'
run: |
sudo apt-get update
sudo apt-get install -y libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev
- name: Formatting
run: |
cargo fmt --check
- name: Lints
run: |
cargo clippy
- name: Build
run: |
cargo build --bin hedz_reloaded
cargo build --bin hedz_reloaded_server --no-default-features
- name: Tests
run: |
cargo test --lib hedz_reloaded
cargo test --lib hedz_reloaded --no-default-features