Skip to content

Commit a396d01

Browse files
authored
Merge pull request #42 from nstdio/matrix-build
ci: Matrix build
2 parents 0b1bf90 + 5c4983d commit a396d01

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/build.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,21 @@ on:
1212
jobs:
1313
build:
1414
name: Build
15+
strategy:
16+
matrix:
17+
java-version: [ 8, 11, 17, 21, 23 ]
1518
runs-on: ubuntu-latest
1619
steps:
1720
- uses: actions/checkout@v4
18-
- name: Set up JDK 8
21+
- name: Set up JDK ${{ matrix.java-version }}
1922
uses: actions/setup-java@v4
2023
with:
2124
distribution: 'temurin'
22-
java-version: 8
25+
java-version: ${{ matrix.java-version }}
2326
cache: 'gradle'
2427
- name: Build
2528
run: ./gradlew build
2629
- uses: codecov/codecov-action@v5
30+
if: matrix.java-version == 8
2731
with:
2832
verbose: true

0 commit comments

Comments
 (0)