Skip to content

Java Build

Java Build #1827

Workflow file for this run

name: Java Build
permissions: {}
on:
push:
branches: ["main"]
pull_request:
branches: ["main", "release-*"]
merge_group:
schedule:
# daily at 1:30 UTC
- cron: '30 1 * * *'
concurrency:
group: java-build-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
strategy:
matrix:
os: [ ubuntu-22.04 ]
java: [ "11", "17" ]
runs-on: ${{ matrix.os }}
timeout-minutes: 5
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
cache: 'maven'
- name: Build JAR Artifacts and verify coverage
run: mvn --batch-mode --no-transfer-progress --errors --update-snapshots clean package -Drevision=$(git describe --tags --always)
- name: Upload Artifacts
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882
with:
name: maven-build-java-${{ matrix.java }}
path: target/
if-no-files-found: error
retention-days: 5