name: CI on pull request
on:
pull_request:
branches:
- main
jobs:
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
components: clippy
override: true
- name: Install bevy dependencies
run: sudo apt-get install g++ pkg-config libx11-dev libasound2-dev libudev-dev libxkbcommon-x11-0
- name: Run Clippy (Linting)
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets --all-features -- -D warnings
- name: Run Tests
uses: actions-rs/cargo@v1
with:
command: test
args: --all-targets --all-features --release
- name: Run Simple Example
uses: actions-rs/cargo@v1
with:
command: run
args: --all-features --example simple
- name: Run no_std Example
uses: actions-rs/cargo@v1
with:
command: run
args: --no-default-features --features bevy --example no_std
- name: Build Docs
uses: actions-rs/cargo@v1
with:
command: doc
args: --no-deps --all-features
- name: Run benchmark
uses: actions-rs/cargo@v1
with:
command: bench
args: --all-features