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

Night Owl and Early Bird traits (#157) #80

Night Owl and Early Bird traits (#157)

Night Owl and Early Bird traits (#157) #80

Workflow file for this run

name: Master CI
on:
push:
branches: ["master"]
env:
CARGO_TERM_COLOR: always
jobs:
check:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-check-${{ hashFiles('**/Cargo.toml') }}
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2024-03-22
components: rustfmt, clippy
- name: Install dependencies
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev
- name: Version check
run: rustc --version && cargo --version && rustfmt --version && cargo clippy --version
- name: Format
run: cargo fmt -- --check
- name: Check
run: cargo check
- name: Clippy
run: cargo clippy -- -D warnings
- name: Test
run: cargo test
- name: Broken docs
run: RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --offline