Files
claudeandClaude Opus 5.5 68512d90cd ci: run on the desktop runner (runs-on: desktop)
Move jobs from gitdan-ci's ubuntu-latest to the desktop runner label,
the default CI runner per daniel/gitdan#112, and fix comments and docs
that named the old runner.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MfBCVP2GbKqXSmmJXRPnXP
2026-11-08 13:18:45 -06:00

79 lines
2.1 KiB
YAML

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
# Run cargo test
test:
name: Test Suite
runs-on: desktop
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-test-${{ hashFiles('**/Cargo.toml') }}
- name: Install nightly toolchain
uses: dtolnay/rust-toolchain@nightly
- name: Install Dependencies
run: sudo apt-get update; sudo apt-get install --yes --no-install-recommends libasound2-dev libudev-dev clang lld
- name: Run cargo test
run: cargo test
# Run cargo clippy -- -D warnings
clippy_check:
name: Clippy
runs-on: desktop
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: Install nightly toolchain
uses: dtolnay/rust-toolchain@nightly
with:
components: clippy
- name: Install Dependencies
run: sudo apt-get update; sudo apt-get install --yes --no-install-recommends libasound2-dev libudev-dev clang lld
- name: Run clippy
run: cargo clippy -- -D warnings
# Run cargo fmt --all -- --check
format:
name: Format
runs-on: desktop
timeout-minutes: 30
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install nightly toolchain
uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- name: Run cargo fmt
run: cargo fmt --all -- --check