chore: bump cargo-bins/cargo-binstall from 1.10.2 to 1.10.3 #98
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
# @CREDIT: | |
# <https://github.com/bevyengine/bevy_github_ci_template/blob/main/.github/workflows/release.yaml> | |
# <https://github.com/TheBevyFlock/bevy_quickstart/blob/main/.github/workflows/release.yaml> | |
name: CI | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
# Run cargo test | |
test: | |
name: Testing | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Install Rust toolchain | |
uses: dtolnay/rust-toolchain@nightly | |
- name: Load cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install --no-install-recommends \ | |
libasound2-dev \ | |
libudev-dev \ | |
libwayland-dev \ | |
libxkbcommon-dev | |
- name: Run cargo test | |
run: | | |
cargo test | |
# Run cargo clippy -- -D warnings | |
clippy-check: | |
name: Linting | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Install Rust toolchain | |
uses: dtolnay/rust-toolchain@nightly | |
with: | |
components: clippy | |
- name: Load cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install --no-install-recommends \ | |
libasound2-dev \ | |
libudev-dev \ | |
libwayland-dev \ | |
libxkbcommon-dev | |
- name: Run clippy | |
run: | | |
cargo clippy --all-targets -- --deny warnings | |
# Run cargo fmt --all -- --check | |
format: | |
name: Formatting | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Install Rust toolchain | |
uses: dtolnay/rust-toolchain@nightly | |
with: | |
components: rustfmt | |
- name: Run cargo fmt | |
run: | | |
cargo fmt --all -- --check |