Skip to content

Commit 1fa60d6

Browse files
committed
Added new Java/Maven build/test github action workflow.
1 parent ad968e4 commit 1fa60d6

File tree

2 files changed

+54
-1
lines changed

2 files changed

+54
-1
lines changed

.github/workflows/maven.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
3+
4+
name: Java CI with Maven
5+
6+
on:
7+
push:
8+
branches: [ "master" ]
9+
pull_request:
10+
branches: [ "master" ]
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
# Long term supported versions
18+
java-version: [11, 17, 21]
19+
20+
# TODO Add support for 8, but it fails with
21+
# java.lang.UnsupportedClassVersionError: com/spotify/fmt/FMT has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
22+
23+
# TODO Should we test locales? The old travis setup did, see:
24+
# https://github.com/bramp/ffmpeg-cli-wrapper/pull/55
25+
26+
name: JDK ${{ matrix.java-version }}
27+
28+
steps:
29+
- uses: actions/checkout@v3
30+
31+
- name: Set up FFmpeg
32+
uses: FedericoCarboni/setup-ffmpeg@v3
33+
id: setup-ffmpeg
34+
with:
35+
ffmpeg-version: release
36+
37+
- name: Set up JDK ${{ matrix.java-version }}
38+
uses: actions/setup-java@v3
39+
with:
40+
java-version: ${{ matrix.java-version }}
41+
distribution: 'temurin'
42+
cache: maven
43+
44+
- name: Compile with Maven
45+
run: mvn --batch-mode --update-snapshots compile
46+
47+
- name: Test with Maven, Package and Verify with Maven
48+
run: mvn --batch-mode --update-snapshots verify -Dgpg.skip
49+
50+
# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
51+
- name: Update dependency graph
52+
uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
FFmpeg Java
22
===========
3+
34
by Andrew Brampton ([bramp.net](https://bramp.net)) (c) 2013-2014,2016
45

56
[!["Buy Me A Coffee"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/bramp)
67

78
A fluent interface to running FFmpeg from Java.
89

910
![Java](https://img.shields.io/badge/Java-8+-brightgreen.svg)
10-
[![Build Status](https://img.shields.io/travis/bramp/ffmpeg-cli-wrapper/master.svg)](https://travis-ci.org/bramp/ffmpeg-cli-wrapper)
11+
[![Build Status](https://github.com/bramp/ffmpeg-cli-wrapper/actions/workflows/maven.yml/badge.svg)](https://github.com/bramp/ffmpeg-cli-wrapper/actions/workflows/maven.yml)
1112
[![Coverage Status](https://img.shields.io/coveralls/bramp/ffmpeg-cli-wrapper.svg)](https://coveralls.io/github/bramp/ffmpeg-cli-wrapper)
1213
[![Maven](https://img.shields.io/maven-central/v/net.bramp.ffmpeg/ffmpeg.svg)](http://mvnrepository.com/artifact/net.bramp.ffmpeg/ffmpeg)
1314
[![Libraries.io](https://img.shields.io/librariesio/github/bramp/ffmpeg-cli-wrapper.svg)](https://libraries.io/github/bramp/ffmpeg-cli-wrapper)

0 commit comments

Comments
 (0)