README update #431
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
- name: Setup Maven | |
run: echo "MAVEN_OPTS='-Xmx2048m'" > ~/.mavenrc | |
- name: Cache maven repo | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-maven-repo | |
with: | |
# maven files are stored in `~/.m2/repository` on Linux/macOS | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/*.sha1') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- name: Build with Maven | |
run: mvn clean verify --no-transfer-progress --batch-mode --show-version |