-
Notifications
You must be signed in to change notification settings - Fork 178
41 lines (38 loc) · 1.12 KB
/
maven-ubuntu.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Tribuo CI (Ubuntu x86_64, Java SE 17, 21, 23)
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
# test against supported LTS versions and latest
java: [ 21, 23 ]
name: Ubuntu Java SE ${{ matrix.java }}
steps:
- uses: actions/checkout@v4
- name: Setup Oracle Java SE
uses: oracle-actions/setup-java@v1.4.0
with:
website: oracle.com
release: ${{ matrix.java }}
- name: Build with Maven
run: mvn -B package --file pom.xml
build-17:
runs-on: ubuntu-latest
name: macOS Java SE 17
steps:
- uses: actions/checkout@v4
- name: Setup Oracle Java SE
uses: oracle-actions/setup-java@v1.4.0
with:
website: oracle.com
release: 17
version: 17.0.12
- name: Build with Java 17
run: mvn -B package --file pom.xml