This repository was archived by the owner on Jun 27, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +16
-12
lines changed Expand file tree Collapse file tree 1 file changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -15,23 +15,22 @@ jobs:
15
15
build :
16
16
runs-on : ubuntu-latest
17
17
18
+ strategy :
19
+ matrix :
20
+ java : [8, 11, 17]
21
+ java-package : [jdk]
22
+ distribution : [temurin]
23
+
18
24
steps :
19
25
- uses : actions/checkout@v2
20
26
21
- - name : Set up JDK 8
27
+ - name : Set up JDK
22
28
uses : actions/setup-java@v2
23
29
with :
24
- distribution : ' zulu'
25
- java-version : ' 8'
26
- java-package : jdk+fx
27
-
28
- - name : Cache local Maven repository
29
- uses : actions/cache@v2
30
- with :
31
- path : ~/.m2/repository
32
- key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
33
- restore-keys : |
34
- ${{ runner.os }}-maven-
30
+ distribution : ${{ matrix.distribution }}
31
+ java-version : ${{ matrix.java }}
32
+ java-package : ${{ matrix.java-package }}
33
+ cache : ' maven'
35
34
36
35
- name : Build with Maven
37
36
run : mvn -B clean verify
53
52
echo "::error::Unstaged changes detected. Locally try running: git clean -ffdx && mvn -B clean verify"
54
53
exit 1
55
54
fi
55
+
56
+ - uses : actions/upload-artifact@v2
57
+ with :
58
+ name : jars-java-${{ matrix.java }}
59
+ path : target/*.jar
You can’t perform that action at this time.
0 commit comments