Add a Java 11 build

This commit is contained in:
Chris Vest 2021-05-21 18:37:42 +02:00
parent 9dc1d533e3
commit a9b8189aa1
1 changed files with 13 additions and 7 deletions

View File

@ -1,4 +1,4 @@
name: CI Build
name: Build
# Controls when the action will run.
on:
@ -13,14 +13,9 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
java17:
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# http://man7.org/linux/man-pages/man1/date.1.html
- name: Create Cache Key
@ -60,3 +55,14 @@ jobs:
# Make room for the docker layer caching to package up layers
- name: Cleanup
run: rm -fr *
java11:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Java 11
uses: actions/setup-java@v2
with:
distribution: 'adopt' # See 'Supported distributions' for available options
java-version: '11'
- name: Maven build
run: mvn verify -B -C -T1C -fae