-
Notifications
You must be signed in to change notification settings - Fork 11
30 lines (28 loc) · 1.09 KB
/
gradle-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: "Build Gradle project"
on: [ push, pull_request, workflow_dispatch ]
permissions:
contents: write
jobs:
build:
name: Test JVM/Gradle (${{ matrix.java-version }}, ${{ matrix.gradle-version }})
runs-on: ubuntu-latest
strategy:
matrix:
java-version: [ "8", "11", "17" ]
gradle-version: [ "6.9.4", "7.0.2", "7.6.1", "8.0.2", "8.4" ]
steps:
- name: Check out project
uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: 11
distribution: 'liberica'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
dependency-graph: generate-and-submit
- name: Build with Gradle
run: "./gradlew clean build -PtestJavaRuntimeVersion=${{ matrix.java-version }} -PtestGradleVersion=${{ matrix.gradle-version }}"
env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}