Skip to content

Merge pull request #158 from sfuhrm/dependabot/maven/org.apache.maven… #512

Merge pull request #158 from sfuhrm/dependabot/maven/org.apache.maven…

Merge pull request #158 from sfuhrm/dependabot/maven/org.apache.maven… #512

Workflow file for this run

name: Java CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 11, 17, 21 ]
steps:
- uses: actions/checkout@v3
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: ${{ matrix.java }}
- name: Cache Maven packages
uses: actions/cache@v3
with:
path: |
~/.m2/repository
key: maven-build
- name: Build with Maven
run: mvn -B package --file pom.xml
- uses: actions/upload-artifact@v3
with:
name: jdk-${{ matrix.java }}
path: ./radiobrowser4j/target/radiobrowser4j-*.jar