Skip to content

Updated build workflow #2

Updated build workflow

Updated build workflow #2

Workflow file for this run

name: Maven Java Build
on:
push:
branches: [ build ]
pull_request:
branches: [ build ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'
architecture: x64
- name: Cache Maven Artifacts
uses: actions/cache@v2
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/*