Skip to content

refactor: minor cleanup, remove anyhow dependency #5

refactor: minor cleanup, remove anyhow dependency

refactor: minor cleanup, remove anyhow dependency #5

Workflow file for this run

name: CI
on:
push:
paths-ignore:
- '**.md'
- 'LICENSE*'
- 'COPYING*'
pull_request:
paths-ignore:
- '**.md'
- 'LICENSE*'
- 'COPYING*'
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
jobs:
verify:
runs-on: ubuntu-24.04
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Rust
uses: dtolnay/rust-toolchain@v1
with:
toolchain: 1.95
components: rustfmt, clippy
- name: Check formatting
run: cargo fmt --all -- --check
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
build-essential \
libpipewire-0.3-dev \
libwayland-dev \
libx11-dev \
libx11-xcb-dev \
libxext-dev \
libxfixes-dev \
libxrandr-dev \
libxcursor-dev \
libxi-dev \
libxinerama-dev \
libxkbcommon-dev \
libfontconfig1-dev \
libfreetype6-dev \
libvulkan-dev \
pkg-config
sudo rm -rf /var/lib/apt/lists/*
- name: Cache Cargo builds
uses: Swatinem/rust-cache@v2
- name: Check
run: cargo check --workspace --locked --all-targets
- name: Lint
run: cargo clippy --workspace --locked --all-targets -- -D warnings
- name: Test
run: cargo test --workspace --locked --all-targets