mirror of
https://github.com/freemkv/libfreemkv.git
synced 2026-10-07 18:13:10 +00:00
MKV read-back carries display shape, colour, frame rate, content encodings and BCP47 language, and drops malformed blocks with a count. The FMKV header carries display aspect, CICP, labels, chapters and format. Live reads refuse a zero read batch (E9085) and treat a stopped read as a stop. freemkv-unlock becomes a version dep with a git-tag override; dependency bumps (#27, #28); LPCM keeps its source bit depth; 1.8.0 changelog.
59 lines
2.2 KiB
YAML
59 lines
2.2 KiB
YAML
name: FFmpeg validation
|
|
|
|
# Called by qa.yml on pushes to qa, or manually for a development branch.
|
|
# Pure Rust tests remain in dev CI; these tests require external codecs.
|
|
on:
|
|
workflow_call:
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
validate:
|
|
runs-on: ubuntu-24.04
|
|
timeout-minutes: 20
|
|
env:
|
|
FREEMKV_FFMPEG_ARTIFACT_DIR: ${{ github.workspace }}/ffmpeg-artifacts
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
|
with:
|
|
path: libfreemkv
|
|
- uses: freemkv/.github/.github/actions/checkout-siblings@v1
|
|
with:
|
|
checkout: freemkv-unlock
|
|
patch: freemkv-unlock
|
|
self: libfreemkv
|
|
- name: Read the crate's MSRV
|
|
id: msrv
|
|
working-directory: libfreemkv
|
|
run: echo "v=$(sed -n 's/^rust-version = "\(.*\)"/\1/p' Cargo.toml)" >> "$GITHUB_OUTPUT"
|
|
- uses: dtolnay/rust-toolchain@master
|
|
with:
|
|
toolchain: ${{ steps.msrv.outputs.v }}
|
|
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2
|
|
with:
|
|
workspaces: libfreemkv
|
|
- name: Install software encoders and decoders
|
|
run: sudo apt-get update && sudo apt-get install -y ffmpeg
|
|
- name: Record tool versions
|
|
run: |
|
|
mkdir -p "$FREEMKV_FFMPEG_ARTIFACT_DIR"
|
|
ffmpeg -version > "$FREEMKV_FFMPEG_ARTIFACT_DIR/ffmpeg-version.txt"
|
|
ffprobe -version > "$FREEMKV_FFMPEG_ARTIFACT_DIR/ffprobe-version.txt"
|
|
rustc --version > "$FREEMKV_FFMPEG_ARTIFACT_DIR/rustc-version.txt"
|
|
- name: Generate fixtures and validate libfreemkv output
|
|
working-directory: libfreemkv
|
|
shell: bash
|
|
run: |
|
|
set -o pipefail
|
|
cargo test --release --lib ffmpeg_ -- --ignored --nocapture 2>&1 | tee "$FREEMKV_FFMPEG_ARTIFACT_DIR/tests.log"
|
|
- name: Upload fixtures, probes, hashes and logs
|
|
if: always()
|
|
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
|
|
with:
|
|
name: ffmpeg-validation-${{ github.run_id }}-${{ github.run_attempt }}
|
|
path: ${{ env.FREEMKV_FFMPEG_ARTIFACT_DIR }}
|
|
if-no-files-found: warn
|
|
retention-days: 14
|