Skip to content

feat(mod-runtime): add line and scenario hooks, mod manager UI (#17) #18

feat(mod-runtime): add line and scenario hooks, mod manager UI (#17)

feat(mod-runtime): add line and scenario hooks, mod manager UI (#17) #18

Workflow file for this run

name: CI
on:
pull_request:
push:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
jobs:
# One job per platform. Separate fmt/clippy/doc jobs would compile the whole Bevy
# tree once per job; `clippy --all-targets` already produces what the tests reuse.
check:
name: check (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v7
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
# Bevy needs ALSA and udev headers to build on Linux.
- name: Install Linux dependencies
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y libasound2-dev libudev-dev
# Formatting and lints are platform independent, so one runner is enough.
- name: Rustfmt
if: runner.os == 'Linux'
run: cargo fmt --all -- --check
- name: Clippy
if: runner.os == 'Linux'
run: cargo clippy --workspace --all-targets --locked -- -D warnings
- name: Test
run: cargo test --workspace --locked