2020-08-24 19:15:52 +08:00
|
|
|
name: Java CI
|
|
|
|
|
2020-09-12 12:13:28 +02:00
|
|
|
on: [push, pull_request]
|
2020-08-24 19:15:52 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
continue-on-error: ${{ matrix.experimental }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ ubuntu-latest , windows-latest , macos-latest ]
|
|
|
|
java: [ 11 ]
|
|
|
|
experimental: [ false ]
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2.3.2
|
|
|
|
- uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: ~/.m2/repository
|
|
|
|
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-maven-
|
|
|
|
- name: Set up JDK ${{ matrix.java }}
|
2020-09-12 10:46:46 +00:00
|
|
|
uses: actions/setup-java@v1.4.2
|
2020-08-24 19:15:52 +08:00
|
|
|
with:
|
|
|
|
java-version: ${{ matrix.java }}
|
|
|
|
- name: Build with mvnw
|
|
|
|
run: |
|
|
|
|
./mvnw clean install
|