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