Skip to content

Commit 2b1b4b7

Browse files
committed
try matrix strategy for build
1 parent c26e477 commit 2b1b4b7

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/gradle.yml

+12-2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@ permissions:
1616

1717
jobs:
1818
build:
19+
strategy:
20+
matrix:
21+
josm-versions:
22+
- latest
23+
- tested
24+
- release
25+
jdk:
26+
- 8
27+
- 11
28+
- 17
1929

2030
runs-on: ubuntu-latest
2131

@@ -24,7 +34,7 @@ jobs:
2434
- name: Set up JDK 8
2535
uses: actions/setup-java@v3
2636
with:
27-
java-version: '8'
37+
java-version: '${{ matrix.jdk }}'
2838
distribution: 'temurin'
2939
# headless X11 setup according to
3040
# https://stackoverflow.com/questions/68292797/running-java-gui-tests-on-github-using-xvfb
@@ -37,4 +47,4 @@ jobs:
3747
env:
3848
DISPLAY: ":19"
3949
with:
40-
arguments: build
50+
arguments: build -Pplugin.josmCompileVersion=${{ matrix.josm-version }}

0 commit comments

Comments
 (0)