40 lines
1.2 KiB
YAML
40 lines
1.2 KiB
YAML
# This workflow uses actions that are not certified by GitHub.
|
|
# They are provided by a third-party and are governed by
|
|
# separate terms of service, privacy policy, and support
|
|
# documentation.
|
|
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
|
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
|
|
|
|
name: Latest Build
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
jdk: [8, 11, 14, 16, 17]
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Set up JDK ${{ matrix.jdk }}
|
|
uses: actions/setup-java@v1
|
|
with:
|
|
java-version: ${{ matrix.jdk }}
|
|
distribution: 'adopt'
|
|
- name: Validate Gradle wrapper
|
|
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b
|
|
- name: Make gradlew executable
|
|
run: chmod +x ./gradlew
|
|
- name: Generate SourceCode with Gradle
|
|
run: ./gradlew generateGithubSource
|
|
- name: Build with Gradle
|
|
run: ./gradlew build
|