Skip to content

Commit 703b211

Browse files
committed
Changed to java 8 used for standalone build
1 parent 6857b16 commit 703b211

1 file changed

Lines changed: 35 additions & 4 deletions

File tree

.github/workflows/gradle.yml

Lines changed: 35 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,39 @@ env:
99
JAVA_VERSION: '16'
1010

1111
jobs:
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
@@ -31,7 +64,7 @@ jobs:
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
@@ -40,9 +73,7 @@ jobs:
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.

0 commit comments

Comments
 (0)