Files
HEDZReloaded/.github/workflows/ci.yml
extrawurst 6050a61c12
All checks were successful
ci / ci (macos) (pull_request) Successful in 7m50s
ci / ci (linux) (pull_request) Successful in 24m4s
fix
2025-12-23 08:48:32 -05:00

46 lines
1.0 KiB
YAML

name: ci
on:
pull_request:
push:
branches: ["master"]
jobs:
ci:
strategy:
matrix:
os: ["linux", "macos"]
runs-on: ["self-hosted", "${{ matrix.os }}"]
steps:
- uses: actions/checkout@v4
- uses: cargo-bins/cargo-binstall@main
- 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