mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-18 16:08:56 +00:00
- Runs on ubuntu-latest (x86_64, no GPU) - Installs Rust + Skia build deps (clang, ninja, ffmpeg, fonts) - Caches Cargo registry + Skia build between runs - Builds with --no-default-features (CPU raster only) - Runs all tests + criterion benchmarks - Posts benchmark results to PR summary
30 lines
1.0 KiB
Docker
30 lines
1.0 KiB
Docker
# HyperFrames Native Renderer — Linux CI Test Image
|
|
#
|
|
# Tests the Rust native renderer on Linux without GPU access.
|
|
# Validates: CPU raster rendering, FFmpeg pipe encoding, scene parsing,
|
|
# element painting, effects, image compositing, animated pipeline.
|
|
#
|
|
# Usage:
|
|
# cd packages/native-renderer
|
|
# docker build -f Dockerfile.test -t hyperframes-native:test .
|
|
# docker run --rm hyperframes-native:test
|
|
|
|
FROM rust:1.88-bookworm
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
clang libclang-dev pkg-config \
|
|
libfontconfig1-dev libfreetype6-dev \
|
|
ninja-build python3 git \
|
|
ffmpeg fonts-liberation fonts-dejavu-core fontconfig \
|
|
&& rm -rf /var/lib/apt/lists/* && fc-cache -fv
|
|
|
|
WORKDIR /app
|
|
COPY Cargo.toml Cargo.lock* ./
|
|
COPY src ./src
|
|
COPY tests ./tests
|
|
|
|
# Build tests only (skip benchmarks — criterion is heavy)
|
|
RUN cargo test --release --no-default-features --no-run 2>&1 | tail -3
|
|
|
|
ENTRYPOINT ["cargo", "test", "--release", "--no-default-features", "--", "--test-threads=1"]
|