Skip to content

Commit 6ecb5c3

Browse files
dfa1Copilot
andcommitted
ci: update workflow to test on JDKs 22,25,26 (Linux)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 39fbc64 commit 6ecb5c3

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,29 @@ on:
88

99
jobs:
1010
build:
11+
name: Build (Java ${{ matrix.java-version }})
1112
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
java-version: [22, 25, 26]
1216

1317
steps:
1418
- uses: actions/checkout@v4
1519

16-
- name: Set up Azul Zulu JDK 25
20+
- name: Set up JDK ${{ matrix.java-version }}
1721
uses: actions/setup-java@v4
1822
with:
19-
distribution: zulu
20-
java-version: '25'
23+
distribution: 'zulu'
24+
java-version: ${{ matrix.java-version }}
25+
cache: 'maven'
2126

2227
- name: Cache Maven repository
2328
uses: actions/cache@v4
2429
with:
2530
path: ~/.m2/repository
26-
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
31+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}-${{ matrix.java-version }}
2732
restore-keys: |
28-
${{ runner.os }}-maven-
33+
${{ runner.os }}-maven-${{ matrix.java-version }}-
2934
3035
- name: Install protobuf compiler
3136
run: sudo apt-get install -y protobuf-compiler

0 commit comments

Comments
 (0)