Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Commit dfc33c4

Browse files
authored
Update checkBuild.yml
1 parent 525fb86 commit dfc33c4

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

.github/workflows/checkBuild.yml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,22 @@ jobs:
1515
build:
1616
runs-on: ubuntu-latest
1717

18+
strategy:
19+
matrix:
20+
java: [8, 11, 17]
21+
java-package: [jdk]
22+
distribution: [temurin]
23+
1824
steps:
1925
- uses: actions/checkout@v2
2026

21-
- name: Set up JDK 8
27+
- name: Set up JDK
2228
uses: actions/setup-java@v2
2329
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'
3534

3635
- name: Build with Maven
3736
run: mvn -B clean verify
@@ -53,3 +52,8 @@ jobs:
5352
echo "::error::Unstaged changes detected. Locally try running: git clean -ffdx && mvn -B clean verify"
5453
exit 1
5554
fi
55+
56+
- uses: actions/upload-artifact@v2
57+
with:
58+
name: jars-java-${{ matrix.java }}
59+
path: target/*.jar

0 commit comments

Comments
 (0)