forked from thsa/datawarrior
-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (30 loc) · 1.07 KB
/
maven.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI with Maven
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
java: [17]
os: [ubuntu-22.04, windows-2022, macos-latest]
name: Java ${{ matrix.java }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup java
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: ${{ matrix.java }}
cache: 'maven'
- name: Install fxmolviewer
run: git clone https://github.com/thsa/fxmolviewer/ && cd fxmolviewer && mvn -B clean install "-DreleaseVersion=0.0.1-SNAPSHOT" && cd ..
- name: Build with Maven
run: mvn -B package
- name: 'Upload Artifact'
uses: actions/upload-artifact@v4
with:
name: binary-${{ matrix.os }}-${{ matrix.java }}
path: target/dist/*
retention-days: 5