Skip to content

feat: add managed recording session and docs #62

feat: add managed recording session and docs

feat: add managed recording session and docs #62

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
tags: [ 'v*' ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: never
jobs:
validate:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: sync-version-refs
if: matrix.os == 'ubuntu-latest'
run: bash ./scripts/update-version.sh
- name: sync-version-refs
if: matrix.os == 'windows-latest'
shell: pwsh
run: ./scripts/update-version.ps1
- name: fmt
run: cargo fmt --all -- --check
- name: clippy
run: cargo clippy --workspace --all-targets -- -D warnings
- name: check
run: cargo check --workspace --all-targets
- name: doc
run: cargo doc --no-deps --all-features
- name: docs-link-style
if: matrix.os == 'ubuntu-latest'
run: bash ./scripts/check-doc-links.sh
- name: docs-link-style
if: matrix.os == 'windows-latest'
shell: pwsh
run: ./scripts/check-doc-links.ps1
- name: link-check
if: matrix.os == 'ubuntu-latest'
uses: lycheeverse/lychee-action@v1
with:
args: >-
--verbose
--no-progress
--max-redirects 5
--retry-wait-time 2
--retry-count 2
--exclude-mail
README.md docs/**/*.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
publish:
name: Publish to crates.io
needs: validate
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Publish teamtalk
run: |
cd crates/teamtalk
cargo publish --token ${{ secrets.CRATES_IO_TOKEN }}