File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ # This workflow will build a Java project with Gradle
2+ # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
3+
4+ name : Java CI with Gradle for Java 16
5+
6+ on : [push,pull_request]
7+
8+ jobs :
9+ build :
10+
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - uses : actions/checkout@v2
15+ - name : Set up JDK 16
16+ uses : actions/setup-java@v1
17+ with :
18+ java-version : 16
19+ - name : Cache Gradle packages
20+ uses : actions/cache@v2
21+ with :
22+ path : |
23+ ~/.gradle/caches
24+ ~/.gradle/wrapper
25+ key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*','**/gradle-wrapper.properties') }}
26+ restore-keys : |
27+ ${{ runner.os }}-gradle-
28+ - name : Grant execute permission for gradlew
29+ run : chmod +x gradlew
30+ - name : Build with Gradle
31+ run : |
32+ cd panelstudio-mc17
33+ ./gradlew build
34+ - name : Build ExampleMod17
35+ run : |
36+ cd example-mod17
37+ chmod +x gradlew
38+ ./gradlew build
39+ - name : Upload package
40+ uses : actions/upload-artifact@v2
41+ with :
42+ path : |
43+ panelstudio*/build/libs/panelstudio-*.jar
44+ example-mod*/build/libs/*.jar
45+ - name : Cleanup Gradle Cache
46+ run : |
47+ rm -rf ~/.gradle/caches/modules-2/modules-2.lock
48+ rm -rf ~/.gradle/caches/modules-2/gc.properties
You can’t perform that action at this time.
0 commit comments