File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 JAVA_VERSION : ' 16'
1010
1111jobs :
12+ build_jar :
13+ name : Packaging for standalone.
14+ runs-on : ubuntu-latest
15+ steps :
16+ - uses : actions/checkout@v2
17+ - name : Set up JDK 8
18+ uses : actions/setup-java@v2
19+ with :
20+ java-version : ' 8'
21+ distribution : ' adopt'
22+ - name : Cache Gradle packages
23+ uses : actions/cache@v2
24+ with :
25+ path : |
26+ ~/.gradle/caches
27+ ~/.gradle/wrapper
28+ key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
29+ restore-keys : |
30+ ${{ runner.os }}-gradle-
31+ - name : Grant execute permission for gradlew
32+ run : chmod +x gradlew
33+ - name : Build with Gradle
34+ run : ./gradlew assemble
35+ - name : Cleanup Gradle Cache
36+ run : |
37+ rm -f ~/.gradle/caches/modules-2/modules-2.lock
38+ rm -f ~/.gradle/caches/modules-2/gc.properties
39+ - name : Upload package file
40+ uses : actions/upload-artifact@v2
41+ with :
42+ name : artifact
43+ path : build/distributions/*
44+
1245 build_linux :
1346 name : Packaging for Linux.
1447 runs-on : ubuntu-latest
3164 - name : Grant execute permission for gradlew
3265 run : chmod +x gradlew
3366 - name : Build with Gradle
34- run : ./gradlew jpackageForLinux assemble
67+ run : ./gradlew jpackageForLinux
3568 - name : Cleanup Gradle Cache
3669 run : |
3770 rm -f ~/.gradle/caches/modules-2/modules-2.lock
4073 uses : actions/upload-artifact@v2
4174 with :
4275 name : artifact
43- path : |
44- build/distributions/*
45- build/packages/*.deb
76+ path : build/packages/*.deb
4677
4778 build_mac :
4879 name : Packaging for macOS.
You can’t perform that action at this time.
0 commit comments