Skip to content

feat!: implement new API to also handle multiple transcoding outputs #43

feat!: implement new API to also handle multiple transcoding outputs

feat!: implement new API to also handle multiple transcoding outputs #43

Workflow file for this run

name: Test
on:
push:
branches: [ 'main' ]
pull_request:
branches: [ 'main' ]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['3.1', '3.2', '3.3']
ffmpeg-version: ['release', '6.0.1', '5.1.1', '4.4.1']
include:
- ffmpeg-version: 'release'
ffmpeg-download-path: 'releases'
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
rubygems: latest
- name: Install FFMPEG
working-directory: /tmp
run: |
sudo apt-get update
sudo apt-get install -y wget
wget -O ffmpeg.tar.xz https://johnvansickle.com/ffmpeg/${{ matrix.ffmpeg-download-path || 'old-releases' }}/ffmpeg-${{ matrix.ffmpeg-version }}-amd64-static.tar.xz
mkdir ffmpeg
tar -xf ffmpeg.tar.xz --strip=1 -C ffmpeg
sudo mv ffmpeg/ffmpeg /usr/local/bin/ffmpeg
sudo mv ffmpeg/ffprobe /usr/local/bin/ffprobe
rm -rf ffmpeg.tar.xz ffmpeg
- name: Run RSpec
run: bundle exec rspec