feat: add audio channels to presets #145
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test | |
| on: | |
| push: | |
| branches: [ 'main' ] | |
| pull_request: | |
| branches: [ 'main' ] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| ruby-version: ['3.2', '3.3', '3.4'] | |
| 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: Cache FFMPEG Package | |
| id: cache-ffmpeg | |
| uses: actions/cache@v4 | |
| with: | |
| path: /tmp/ffmpeg.tar.xz | |
| key: ffmpeg-${{ matrix.ffmpeg-version }}-${{ runner.os }}.tar.xz | |
| - name: Download FFMPEG Package | |
| if: steps.cache-ffmpeg.outputs.cache-hit != 'true' | |
| working-directory: /tmp | |
| run: | | |
| wget -O ffmpeg.tar.xz https://johnvansickle.com/ffmpeg/${{ matrix.ffmpeg-download-path || 'old-releases' }}/ffmpeg-${{ matrix.ffmpeg-version }}-amd64-static.tar.xz | |
| - name: Install FFMPEG | |
| working-directory: /tmp | |
| run: | | |
| 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 | |
| - name: Run RSpec | |
| run: bundle exec rspec |