Skip to content

Commit

Permalink
try matrix strategy for build
Browse files Browse the repository at this point in the history
  • Loading branch information
Gubaer committed Jun 4, 2022
1 parent c26e477 commit 2b1b4b7
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ permissions:

jobs:
build:
strategy:
matrix:
josm-versions:
- latest
- tested
- release
jdk:
- 8
- 11
- 17

runs-on: ubuntu-latest

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

0 comments on commit 2b1b4b7

Please sign in to comment.