replicate: rework entity ids and add keepalive #450
Workflow file for this run
This file contains 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: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
fmt: | |
name: Check Formatting | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Cache cargo dependencies | |
uses: Swatinem/rust-cache@v2 | |
- name: Check formatting | |
run: cargo fmt --check --all | |
check: | |
name: Lint and Build | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install bevy dependencies | |
run: | | |
sudo apt-get update && sudo apt-get install -y \ | |
g++ pkg-config libx11-dev libasound2-dev libudev-dev libopenxr-loader1 libopenxr-dev | |
- name: Cache cargo dependencies | |
uses: Swatinem/rust-cache@v2 | |
- name: Clippy lints | |
run: cargo clippy --all --all-features --all-targets --no-deps -- -D warnings | |
- name: Cargo Doc | |
run: RUSTDOCFLAGS="-D warnings" cargo doc --all --all-features --no-deps --document-private-items | |
test: | |
name: Run Tests | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install bevy dependencies | |
run: | | |
sudo apt-get update && sudo apt-get install -y \ | |
g++ pkg-config libx11-dev libasound2-dev libudev-dev libopenxr-loader1 libopenxr-dev mesa-vulkan-drivers xvfb libxkbcommon-x11-0 | |
- name: Cache cargo dependencies | |
uses: Swatinem/rust-cache@v2 | |
- name: Test | |
run: xvfb-run cargo test --all --all-features --all-targets | |
- name: Upload screenshots to artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
path: "**/tests/screnshots" | |
name: screenshots | |
retention-days: 1 | |
deny: | |
name: Run cargo deny | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: EmbarkStudios/cargo-deny-action@v1 | |