Skip to content

Version 2.3.4 (#81) #165

Version 2.3.4 (#81)

Version 2.3.4 (#81) #165

Workflow file for this run

# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: Java CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [16.x, 11.x]
name: Java ${{ matrix.java }} Build
steps:
- uses: actions/checkout@v2
- name: Setup java
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Setup Gradle to generate and submit dependency graphs
uses: gradle/gradle-build-action@v2
with:
dependency-graph: generate-and-submit
if: github.ref == 'refs/heads/main'
# only run this step on on main branch, not PRs
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-${{ matrix.java }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-${{ matrix.java}}-gradle
- name: Build with Gradle
run: ./gradlew build