Files
VoelinClient/third_party/dimpl/.github/workflows/cargo.yml
T
Claude ce7c833aa8 Vendor dimpl 0.7.4 unmodified and patch it in from third_party
str0m's DTLS stack (dimpl) hard-codes the SRTP profile a DTLS server picks
(AES-256-GCM first), with no way to configure it. Official TeamSpeak 6
clients use AES_CM_128_HMAC_SHA1_80, so we need to patch dimpl. This commit
only vendors the crate as published and routes crates.io's dimpl to it;
the change follows separately so it can be reviewed and dropped on its own.

third_party is excluded from the workspace so dimpl's dev-dependencies and
tests stay out of our builds, and own-crates.sh skips it like crates/proto.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NJvYyRmTjKcb9i8eyYXK5G
2026-09-26 23:27:21 +00:00

86 lines
2.5 KiB
YAML

name: CI
permissions:
contents: read
on:
push:
branches: ["main"]
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
rust: [stable, beta, 1.85.0]
feature: ["aws-lc-rs", "rust-crypto", "rcgen", ""]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@v1
id: toolchain
with:
toolchain: ${{ matrix.rust }}
- uses: Swatinem/rust-cache@v2
- name: Install autotools (macOS)
if: runner.os == 'macOS'
run: brew install autoconf automake libtool
- name: Set MACOSX_DEPLOYMENT_TARGET
if: runner.os == 'macOS'
run: echo "MACOSX_DEPLOYMENT_TARGET=$(sw_vers -productVersion | cut -d. -f1)" >> $GITHUB_ENV
- name: Build
run: cargo +${{steps.toolchain.outputs.name}} build --no-default-features --features "${{ matrix.feature }}"
- name: Test
if: matrix.feature == 'aws-lc-rs' || matrix.feature == 'rust-crypto'
run: cargo +${{steps.toolchain.outputs.name}} test --no-default-features --features "${{ matrix.feature }}"
snowflake:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Martin's snowflake formatting rules
uses: algesten/snowflake@v1.0.4
with:
check_diff: true
line_width_rules: "CHANGELOG.md:120;c_cpp_properties.json:160;Cargo.toml:199;README.md:180;README.tpl:180;*.md:110;*.rs:110;*.toml:110;DEFAULT=110"
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@v1
id: toolchain
with:
toolchain: stable
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- name: fmt
run: cargo +${{steps.toolchain.outputs.name}} fmt --all -- --check
- name: clippy
run: cargo +${{steps.toolchain.outputs.name}} clippy -- -D warnings
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
components: clippy
- name: doc
run: cargo doc --no-deps
env:
RUSTDOCFLAGS: -Dwarnings
cargo-deny:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: EmbarkStudios/cargo-deny-action@v2
with:
command: check
arguments: --all-features