mirror of
https://github.com/VallierDev/uu-remote-linux.git
synced 2026-11-16 16:50:41 +01:00
Address PR review: - The FFmpeg 6 bindings (AVChannelLayout, ffmpeg-next 6.1) do not build on the 22.04 runners, which ship FFmpeg 4.4. The default build no longer depends on libav at all, so `cargo test --locked` and the release job on 22.04 no longer compile that code. - The release tarball no longer links the build machine's libav SONAMEs. Default builds use the FFmpeg child process for video and audio again. - `UU_FFMPEG_ROOT` / config `ffmpeg_root` now selects the child-process path even in an inproc-av build, so a bundled FFmpeg with working NVENC is not silently bypassed. Build with `--features inproc-av` (FFmpeg 6 dev packages, Ubuntu 24.04) to get in-process capture, encoding and Opus. CI has a test-inproc job for it. `UU_VIDEO_PIPELINE=process` still forces the child path for video. Probes on ros2go-gpu (440 Hz tone, 5 s): default (ffmpeg child): 44.0 packets/s, 132 kbps, max gap 43 ms inproc-av: 49.7 packets/s, 133.5 kbps, max gap 22 ms desktop-video-probe under inproc-av with UU_FFMPEG_ROOT=/usr uses the child path (no `pipeline=in-process` in the log); without it, in-process.
37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
tags: ['v*']
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
release:
|
|
# Built on 22.04 so the binary also runs on Ubuntu 22.04/24.04 and newer Debian (glibc >= 2.35).
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install build dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y build-essential pkg-config \
|
|
libx11-dev libxext-dev libxtst-dev libxfixes-dev libgtk-3-dev
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
- run: cargo test --release --locked
|
|
- run: cargo build --release --locked
|
|
- name: Package
|
|
run: |
|
|
name=uu-remote-linux-${GITHUB_REF_NAME}-x86_64-linux
|
|
mkdir -p "$name"
|
|
cp target/release/uuremote-server LICENSE README.md README.en.md config.example.json "$name/"
|
|
tar czf "$name.tar.gz" "$name"
|
|
sha256sum "$name.tar.gz" > "$name.tar.gz.sha256"
|
|
- uses: softprops/action-gh-release@v2
|
|
with:
|
|
body_path: docs/release-notes/${{ github.ref_name }}.md
|
|
files: |
|
|
uu-remote-linux-*.tar.gz
|
|
uu-remote-linux-*.tar.gz.sha256
|