* Update Java and fix AppVeyor Target Java 16 Run CI using Java 17 Use provided Maven installation instead of relying on mirror link Remove Java 7 memory limitation settings * Fix Jitpack build for Java > 8 Jitpack uses Java 8 by default. While their (very minimal) explanation of settings suggests specifying `jdk: [ openjdk17 ]` would be enough, it does not appear to work. Not sure if that's just an issue with their image not including JDK17 yet or something, but this does function.
31 lines
727 B
YAML
31 lines
727 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
name: "Test on JDK ${{ matrix.java }}"
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
java: [ 16, 17 ]
|
|
steps:
|
|
- name: "Checkout"
|
|
uses: actions/checkout@v2
|
|
- name: "Set up JDK ${{ matrix.java }}"
|
|
uses: actions/setup-java@v2
|
|
with:
|
|
java-version: ${{ matrix.java }}
|
|
distribution: adopt
|
|
- name: "Cache local Maven repository"
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: ~/.m2/repository
|
|
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-maven-
|
|
- name: "Test"
|
|
run: mvn --batch-mode verify
|