Skip to content

Commit ed631be

Browse files
Update workflow.yml
1 parent 92d560e commit ed631be

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

.github/workflows/workflow.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,20 @@ on:
88

99
jobs:
1010
build:
11-
12-
runs-on: ubuntu-latest
11+
name: Build on Java ${{ matrix.java_version }} and ${{ matrix.os }}
12+
strategy:
13+
matrix:
14+
java_version: ['1.8', '9.0.x', '12.0.2']
15+
os: [ubuntu-latest, windows-latest, macOS-latest]
16+
17+
runs-on: ${{ matrix.os }}
1318

1419
steps:
1520
- uses: actions/checkout@v1
16-
- name: Set up JDK 1.8
21+
- name: Set up JDK ${{ matrix.java_version }}
1722
uses: actions/setup-java@v1
1823
with:
19-
java-version: 1.8
24+
java-version: ${{ matrix.java_version }}
25+
architecture: x64
2026
- name: Build with Maven
2127
run: mvn package --file pom.xml

0 commit comments

Comments
 (0)