-
Notifications
You must be signed in to change notification settings - Fork 7
76 lines (70 loc) · 1.95 KB
/
gradle.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Build app
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: "workflow = ${{ github.workflow }}, ref = ${{ github.event.ref }}, pr = ${{ github.event.pull_request.id }}"
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java: [8, 11, 17]
name: "Build on Java ${{ matrix.java }}"
steps:
- uses: actions/checkout@v2
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Set up Java ${{ matrix.java }}
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java }}
distribution: temurin
cache: gradle
- name: Build and test
run: ./gradlew clean build
# build-jdk8:
# runs-on: ubuntu-latest
# name: Build on Java 8
# steps:
# - uses: actions/checkout@v1
# - uses: gradle/wrapper-validation-action@v1
# name: Validate Gradle Wrapper
# - name: Set up JDK 1.8
# uses: actions/setup-java@v1
# with:
# java-version: 1.8
# - name: Build with Gradle
# run: ./gradlew clean build
# build-jdk11:
# runs-on: ubuntu-latest
# name: Build on Java 11
# steps:
# - uses: actions/checkout@v1
# - uses: gradle/wrapper-validation-action@v1
# name: Validate Gradle Wrapper
# - name: Set up JDK 11
# uses: actions/setup-java@v1
# with:
# java-version: 11
# - name: Build with Gradle
# run: ./gradlew clean build
# build-jdk16:
# runs-on: ubuntu-latest
# name: Build on Java 16
# steps:
# - uses: actions/checkout@v1
# - uses: gradle/wrapper-validation-action@v1
# name: Validate Gradle Wrapper
# - name: Set up JDK 16
# uses: actions/setup-java@v1
# with:
# java-version: 16
# - name: Build with Gradle
# run: ./gradlew clean build