Files
VoelinClient/.github/workflows/ci.yml
T
Claude aa19afbcd0 M1: dalek 4, fuzzing and fixes, tsc-model with server flavor
- curve25519-dalek-ng -> curve25519-dalek 4.
- fuzz/: cargo-fuzz targets for packets, commands and the license chain,
  plus a nightly workflow. Fixes for the panics they found: empty
  license, unchecked license property bounds, wrong index in the C2S
  audio invalid-codec error.
- tsc-model: ServerVersion/ServerFlavor/Capabilities parsed from
  virtualserver_version; tsctl shows the flavor in the tree header.
- CI lints every non-vendored crate via scripts/own-crates.sh.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-25 13:40:56 +00:00

87 lines
2.7 KiB
YAML

name: CI
on:
push:
branches: [main, master]
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: "0"
jobs:
lint:
name: fmt + clippy
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Install system dependencies
run: sudo apt-get update && sudo apt-get install -y libasound2-dev
- name: Install toolchain (rust-toolchain.toml)
run: rustup toolchain install
- uses: Swatinem/rust-cache@v2
# The vendored crates in crates/proto use upstream's nightly rustfmt config
# and have known clippy findings (cleanup is milestone M1), so the strict
# checks cover our own crates only.
- name: rustfmt (own crates)
run: cargo fmt $(scripts/own-crates.sh) --check
- name: clippy (own crates, deny warnings)
run: cargo clippy $(scripts/own-crates.sh) --all-targets --no-deps -- -D warnings
- name: clippy (workspace, report only)
run: cargo clippy --workspace --all-targets
test:
name: test (${{ matrix.os }})
strategy:
fail-fast: false
matrix:
os: [ubuntu-24.04, windows-2025]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install system dependencies
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y libasound2-dev
- name: Install toolchain (rust-toolchain.toml)
run: rustup toolchain install
- uses: Swatinem/rust-cache@v2
- name: Build
run: cargo build --workspace --all-targets --locked
- name: Test
run: cargo test --workspace --locked
deny:
name: cargo-deny
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
# Default features only: the optional `rug` puzzle backend (GMP, LGPL) is
# benchmark-only and never shipped.
- uses: EmbarkStudios/cargo-deny-action@v2
with:
arguments: --workspace
smoke:
name: integration smoke (TS3 + TS6)
runs-on: ubuntu-24.04
needs: test
steps:
- uses: actions/checkout@v4
- name: Install system dependencies
run: sudo apt-get update && sudo apt-get install -y libasound2-dev
- name: Install toolchain (rust-toolchain.toml)
run: rustup toolchain install
- uses: Swatinem/rust-cache@v2
- name: Start TeamSpeak servers
run: docker compose -f dev/docker-compose.yml up -d
- name: Smoke test
run: scripts/it-smoke.sh
- name: Server logs
if: failure()
run: docker compose -f dev/docker-compose.yml logs --no-color