Skip to content

Maven Java Build

Maven Java Build #35

Workflow file for this run

name: Maven Java Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
schedule:
- cron: '20 4 15 JAN-DEC *'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
architecture: x64
- name: Cache Maven Artifacts
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Maven Build
run: mvn -B clean package --file pom.xml
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: Binary-${{ runner.os }}
path: spectracle-app/target/dist/*