Skip to content

Updates to support Platform Spec 0.4-0.12 #87

Updates to support Platform Spec 0.4-0.12

Updates to support Platform Spec 0.4-0.12 #87

Workflow file for this run

# Copyright 2018 The original authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
name: Build
env:
MAVEN_ARGS: -B -e
on:
push:
branches:
- main
pull_request:
jobs:
build:
name: Java ${{ matrix.java }} Maven
runs-on: ubuntu-latest
strategy:
matrix:
java: [8, 11]
steps:
- name: Checkout
uses: actions/checkout@v2.3.4
- name: Cache .m2 registry
uses: actions/cache@v2.1.5
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}-${{ github.sha }}
restore-keys: ${{ runner.os }}-maven-
- name: Setup Java
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java }}
distribution: 'adopt'
- name: Build Project
run: mvn ${MAVEN_ARGS} clean install