Added RViD Scaffold. #12
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: Format | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Cache cargo dependencies | |
uses: Swatinem/rust-cache@v2 | |
- name: Check formatting | |
run: cargo fmt --check --all | |
check: | |
name: Build and Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install bevy dependencies | |
run: | | |
sudo apt-get install \ | |
g++ pkg-config libx11-dev libasound2-dev libudev-dev | |
- name: Cache cargo dependencies | |
uses: Swatinem/rust-cache@v2 | |
- name: Clippy lints | |
run: cargo clippy --all --all-features --all-targets --no-deps | |
- name: Cargo Doc | |
run: cargo doc --all --all-features --no-deps --document-private-items | |
- name: Cargo Test | |
run: cargo test --all --all-features --all-targets |