Skip to content

Commit 3b19dd1

Browse files
committed
github action updated
1 parent 1a399b6 commit 3b19dd1

File tree

2 files changed

+58
-19
lines changed

2 files changed

+58
-19
lines changed

.github/workflows/build.yml

+49-19
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,35 @@
11
name: build
22

3-
on: [push]
3+
on: [ push ]
44

55
jobs:
66
linux:
77
name: 'Linux'
88
runs-on: ubuntu-latest
99

1010
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:
2333
name: 'Windows'
2434
runs-on: windows-latest
2535

@@ -30,10 +40,20 @@ jobs:
3040
uses: actions/setup-java@v1
3141
with:
3242
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:
3757
name: 'Mac OS'
3858
runs-on: macos-latest
3959

@@ -46,5 +66,15 @@ jobs:
4666
java-version: 11
4767
- name: Grant execute permission for gradlew
4868
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

.idea/kotlinScripting.xml

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)