-
Notifications
You must be signed in to change notification settings - Fork 753
80 lines (67 loc) · 2.42 KB
/
pull-request-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
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
77
78
79
80
name: 1.2.x Build without Tests
on: pull_request
jobs:
ubuntu-build:
name: Ubuntu
concurrency:
group: ${{ github.head_ref }}-ubuntu-build
cancel-in-progress: true
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Setup JDK
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: 8
- name: Initialize Submodules
run: |
git submodule update --init
- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: 1.2.x-${{ runner.os }}-gradle-${{ github.sha }}
restore-keys: 1.2.x-${{ runner.os }}-gradle-
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '10.22.1'
- name: Build
run: |
./gradlew build -x test -x createJavadoc --stacktrace -scan --console=plain --no-daemon
windows-build:
name: Windows
concurrency:
group: ${{ github.head_ref }}-windows-build
cancel-in-progress: true
runs-on: windows-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Setup JDK
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: 8
- name: Initialize Submodules
run: |
git submodule update --init
- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: |
$home\.gradle\caches
$home\.gradle\wrapper
key: 1.2.x-${{ runner.os }}-gradle-${{ github.sha }}
restore-keys: 1.2.x-${{ runner.os }}-gradle-
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '10.22.1'
- name: Build
run: |
./gradlew.bat build -x test -x createJavadoc --stacktrace -scan --console=plain --no-daemon