-
Notifications
You must be signed in to change notification settings - Fork 26
62 lines (60 loc) · 1.56 KB
/
maven.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
name: Maven
on:
push:
pull_request:
schedule:
- cron: '0 0 * * 0'
jobs:
build:
strategy:
matrix:
java: [8, 11, 17, 21]
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.9', '3.10', '3.11', '3.12']
exclude:
- java: 8
python-version: '3.9'
- java: 8
python-version: '3.10'
- java: 8
python-version: '3.11'
- java: 8
python-version: '3.12'
- java: 17
python-version: '3.9'
- java: 17
python-version: '3.10'
- java: 17
python-version: '3.11'
- java: 17
python-version: '3.12'
- java: 21
python-version: '3.9'
- java: 21
python-version: '3.10'
- java: 21
python-version: '3.11'
- java: 21
python-version: '3.12'
runs-on: ${{ matrix.os }}
env:
maven_commands: install
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'zulu'
cache: 'maven'
- name: Build
run: mvn ${{ env.maven_commands }}