Skip to content
This repository has been archived by the owner on Aug 24, 2024. It is now read-only.

Migrated to ECS (#22) #43

Migrated to ECS (#22)

Migrated to ECS (#22) #43

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
- release/*
env:
CARGO_TERM_COLOR: always
CRATE_PATHS: .
jobs:
# Run cargo clippy -- -D warnings
clippy_check:
name: Clippy
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Cache
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-clippy-${{ hashFiles('**/Cargo.toml') }}
- name: Identify rust toolchain
id: toolchain
uses: jaywcjlove/github-action-read-file@main
with:
localfile: rust-toolchain
- name: Install rust toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ steps.toolchain.outputs.content }}
components: clippy
- name: Install Dependencies
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
- name: Run clippy
run: cargo clippy -- -D warnings