Skip to content

Commit e4ea051

Browse files
authored
ci: modernize build.yml (#40)
Use more recent versions of actions.
1 parent e167971 commit e4ea051

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,23 @@ on:
2020

2121
jobs:
2222
build:
23-
runs-on: ${{ matrix.os.name }}
23+
runs-on: ${{ matrix.os }}
2424
strategy:
2525
# we want to run the full build on all os: don't cancel running jobs even if one fails
2626
fail-fast: false
2727
matrix:
28-
os:
29-
- { name: ubuntu-latest}
30-
- { name: macos-latest }
31-
- { name: windows-latest }
28+
os: [macos-14, ubuntu-24.04, windows-2022]
29+
java-version: [8]
30+
include:
31+
# Best effort: only test newest java version on Ubuntu
32+
- os: ubuntu-24.04
33+
java-version: 17
3234
steps:
33-
- uses: actions/checkout@v2
34-
- uses: actions/setup-java@v1
35+
- uses: actions/checkout@v4
36+
- uses: actions/setup-java@v2
3537
with:
36-
java-version: 1.8
38+
distribution: 'temurin'
39+
java-version: ${{ matrix.java-version }}
3740
- name: build
3841
run: |
3942
./mvnw -V package

0 commit comments

Comments
 (0)