Skip to content

Fixes for recent FFmpeg versions #410

Fixes for recent FFmpeg versions

Fixes for recent FFmpeg versions #410

Workflow file for this run

name: Tests
on:
push:
paths-ignore:
- publiccode.yml
branches:
- master
- develop
pull_request:
types:
- opened
- reopened
- synchronize
branches:
- master
- develop
env:
MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
java-version: [ 8, 11, 17 ]
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: ${{ matrix.java-version }}
- name: Cache Maven Packages
uses: actions/cache@v3
with:
# be careful not to include ~/.m2/settings.xml which contains credentials
path: |
~/.m2/repository
~/.m2/wrapper
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml', '.mvn/*.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Cache Test Artifacts
uses: actions/cache@v3
with:
path: |
.artifacts
key: ${{ runner.os }}-artifacts-${{ hashFiles('**/Artifacts.java') }}
- name: Install ffmpeg on Ubuntu
run: sudo apt-get update && sudo apt-get install -y ffmpeg && ffmpeg -version
if: startsWith(matrix.os, 'ubuntu')
- name: Install ffmpeg on MacOS
run: brew install ffmpeg && ls -lhtr /usr/local/opt/ffmpeg/ && ffmpeg -version
if: startsWith(matrix.os, 'macos')
- name: Install ffmpeg on Windows
run: choco install ffmpeg && ffmpeg -version
if: startsWith(matrix.os, 'windows')
- name: Build on Ubuntu
run: bash mvnw clean package -B
if: startsWith(matrix.os, 'ubuntu')
- name: Build on MacOS
run: bash mvnw clean package -B
if: startsWith(matrix.os, 'macos')
- name: Build on Windows
run: ./mvnw clean package -B
if: startsWith(matrix.os, 'windows')
test-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: 11
- name: Set up RANDOM GPG key
run: gpg --quick-generate-key --batch --passphrase '' test42
- uses: actions/cache@v3
with:
# be careful not to include ~/.m2/settings.xml which contains credentials
path: |
~/.m2/repository
~/.m2/wrapper
key: release-m2-${{ hashFiles('**/pom.xml', '.mvn/*.xml') }}
restore-keys: |
release-m2
${{ runner.os }}-m2
- name: Test release
run: bash mvnw clean install -B -DskipTests -PJ9-module -Prelease