Check for HW accelerated encoding and decoding #81
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: Checks | |
| on: [push, pull_request] | |
| jobs: | |
| Job: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| fail-fast: false | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 1 | |
| - name: OS packets | |
| run: | | |
| if [ "$RUNNER_OS" == "Linux" ]; then | |
| echo "deb https://mediaarea.net/repo/deb/ubuntu $(lsb_release --codename --short)-snapshots main" | sudo tee /etc/apt/sources.list.d/mediaarea-snapshots.list | |
| sudo curl https://repo.mediaarea.net/deb/ubuntu/keyring.gpg -o /etc/apt/trusted.gpg.d/mediaarea-snapshots.gpg | |
| sudo apt-get update | |
| sudo apt-get install -y nasm valgrind ffmpeg-ma mesa-vulkan-drivers libvulkan1 vulkan-tools vulkan-validationlayers | |
| fi | |
| if [ "$RUNNER_OS" == "macOS" ]; then | |
| brew update | |
| brew install coreutils automake | |
| fi | |
| - name: FFmpeg | |
| run: | | |
| cd Project/GNU/CLI | |
| if [ "$RUNNER_OS" == "Linux" ]; then | |
| git clone --depth 1 git://git.ffmpeg.org/ffmpeg.git ffmpeg.src | |
| pushd ffmpeg.src | |
| ./configure --disable-autodetect --enable-static --disable-shared --enable-vulkan --enable-libshaderc | |
| make | |
| popd | |
| cp ffmpeg.src/ffmpeg . | |
| fi | |
| if [ "$RUNNER_OS" == "macOS" ]; then | |
| curl -O https://mediaarea.net/download/snapshots/binary/ffmpeg/latest/FFmpeg_Bin_Latest_Mac_Static_x64.zip 2>/dev/null | |
| 7za e FFmpeg_Bin_Latest_Mac_Static_x64.zip bin/ffmpeg | |
| fi | |
| - name: Configure | |
| run: | | |
| cd Project/GNU/CLI | |
| sh autogen.sh | |
| ./configure | |
| - name: Compile | |
| run: | | |
| cd Project/GNU/CLI | |
| make | |
| - name: Check files | |
| run: | | |
| cd Project/GNU/CLI | |
| make clone_testing_files | |
| - name: Check | |
| run: | | |
| cd Project/GNU/CLI | |
| make check |