1
1
name : build
2
2
3
- on : [push]
3
+ on : [ push ]
4
4
5
5
jobs :
6
6
linux :
7
7
name : ' Linux'
8
8
runs-on : ubuntu-latest
9
9
10
10
steps :
11
- - uses : actions/checkout@v2
12
- - uses : gradle/wrapper-validation-action@v1
13
- - name : Set up JDK 1.11
14
- uses : actions/setup-java@v1
15
- with :
16
- java-version : 11
17
- - name : Grant execute permission for gradlew
18
- run : chmod +x gradlew
19
- - name : Build with Gradle
20
- run : ./gradlew build
21
-
22
- windows :
11
+ - uses : actions/checkout@v2
12
+ - uses : gradle/wrapper-validation-action@v1
13
+ - name : Set up JDK 1.11
14
+ uses : actions/setup-java@v1
15
+ with :
16
+ java-version : 11
17
+ - name : Grant execute permission for gradlew
18
+ run : chmod +x gradlew
19
+ # - name: Build with Gradle
20
+ # run: ./gradlew build -x dokkaHtml -x dokkaHtmlJar
21
+ - uses : burrunan/gradle-cache-action@v1
22
+ name : Build scenery
23
+ with :
24
+ arguments : build -x dokkaHtml -x dokkaHtmlJar -x javadoc -x dokkaJavadocJar
25
+ # - name: Cleanup Gradle Cache
26
+ # # Remove some files from the Gradle cache, so they aren't cached by GitHub Actions.
27
+ # # Restoring these files from a GitHub Actions cache might cause problems for future builds.
28
+ # run: |
29
+ # rm -f ~/.gradle/caches/modules-2/modules-2.lock
30
+ # rm -f ~/.gradle/caches/modules-2/gc.properties
31
+
32
+ windows :
23
33
name : ' Windows'
24
34
runs-on : windows-latest
25
35
@@ -30,10 +40,20 @@ jobs:
30
40
uses : actions/setup-java@v1
31
41
with :
32
42
java-version : 11
33
- - name : Build with Gradle
34
- run : .\gradlew.bat build
35
-
36
- mac :
43
+ # - name: Build with Gradle
44
+ # run: .\gradlew.bat build -x dokkaHtml -x dokkaHtmlJar
45
+ - uses : burrunan/gradle-cache-action@v1
46
+ name : Build scenery
47
+ with :
48
+ arguments : build -x dokkaHtml -x dokkaHtmlJar -x javadoc -x dokkaJavadocJar
49
+ # - name: Cleanup Gradle Cache
50
+ # # Remove some files from the Gradle cache, so they aren't cached by GitHub Actions.
51
+ # # Restoring these files from a GitHub Actions cache might cause problems for future builds.
52
+ # run: |
53
+ # rm -f ~/.gradle/caches/modules-2/modules-2.lock
54
+ # rm -f ~/.gradle/caches/modules-2/gc.properties
55
+
56
+ mac :
37
57
name : ' Mac OS'
38
58
runs-on : macos-latest
39
59
46
66
java-version : 11
47
67
- name : Grant execute permission for gradlew
48
68
run : chmod +x gradlew
49
- - name : Build with Gradle
50
- run : ./gradlew build
69
+ # - name: Build with Gradle
70
+ # run: ./gradlew build -x dokkaHtml -x dokkaHtmlJar
71
+ - uses : burrunan/gradle-cache-action@v1
72
+ name : Build scenery
73
+ with :
74
+ arguments : build -x dokkaHtml -x dokkaHtmlJar -x javadoc -x dokkaJavadocJar
75
+ # - name: Cleanup Gradle Cache
76
+ # # Remove some files from the Gradle cache, so they aren't cached by GitHub Actions.
77
+ # # Restoring these files from a GitHub Actions cache might cause problems for future builds.
78
+ # run: |
79
+ # rm -f ~/.gradle/caches/modules-2/modules-2.lock
80
+ # rm -f ~/.gradle/caches/modules-2/gc.properties
0 commit comments