LZB 80: Bremsweg-Simulation mit zugspezifischer Verzögerung #26
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |