Skip to content

Downloading: fix representation selection for QualityPreference::Inte… #135

Downloading: fix representation selection for QualityPreference::Inte…

Downloading: fix representation selection for QualityPreference::Inte… #135

Workflow file for this run

# Run cargo tests in a FreeBSD VM.
#
# See https://github.com/cross-platform-actions/action
# (previously using https://github.com/vmactions/freebsd-vm which was causing infloops on boot)
on: [push]
name: freebsd
jobs:
test:
runs-on: macos-latest
# these tests are extremely slow to run
timeout-minutes: 450
steps:
- uses: actions/checkout@v4
- name: Run tests in FreeBSD VM
uses: cross-platform-actions/action@v0.21.1
with:
operating_system: freebsd
version: '13.2'
shell: bash
environment_variables: CI
run: |
sudo pkg update
sudo pkg install -y --quiet curl
curl https://sh.rustup.rs -sSf --output rustup.sh
sh rustup.sh -y --profile minimal --default-toolchain stable
export PATH="${HOME}/.cargo/bin:$PATH"
echo "~~~~ rustc --version ~~~~"
rustc --version
sudo pkg install -y --quiet Bento4
mp4decrypt || true
sudo pkg install -y --quiet ffmpeg
sudo pkg install -y --quiet multimedia/gpac-mp4box
mp4box -version
# we are depending here on FreeBSD's Linux binary compatibility layer
curl https://github.com/shaka-project/shaka-packager/releases/latest/download/packager-linux-x64 --output /tmp/shaka-packager
sudo mv /tmp/shaka-packager /usr/local/bin
sudo chmod +x /usr/local/bin/shaka-packager
sudo pkg install -y --quiet textproc/libxslt
ls -la
cargo build --jobs 1
cargo test --jobs 1