-
Notifications
You must be signed in to change notification settings - Fork 211
190 lines (173 loc) · 5.9 KB
/
Copy pathpull_request.yml
File metadata and controls
190 lines (173 loc) · 5.9 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
name: "Base Workflow"
on:
push:
branches: [main]
pull_request:
branches: [main]
paths-ignore:
- 'LICENSE*'
- '.gitignore'
- '**.md'
- '**.adoc'
- '*.txt'
jobs:
java:
name: "Java Solver"
concurrency:
group: pull_request-${{ github.event_name }}-${{ github.head_ref }}-${{ matrix.os }}-${{ matrix.java-version }}
cancel-in-progress: true
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ ubuntu-latest, ubuntu-24.04-arm, macos-latest, windows-latest ]
java-version: [ 21 ] # Latest LTS if not Ubuntu
include:
- os: ubuntu-latest
java-version: 17
- os: ubuntu-24.04-arm
java-version: 17
- os: ubuntu-latest
java-version: 24
- os: ubuntu-24.04-arm
java-version: 24
timeout-minutes: 120
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: ${{matrix.java-version}}
distribution: 'temurin'
cache: 'maven'
- name: Build and test timefold-solver
run: mvn -B verify
java_full:
name: "Java Solver (with flag -Dfull)"
runs-on: ubuntu-latest
timeout-minutes: 120
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'temurin'
cache: 'maven'
- name: Build and test timefold-solver using flag -Dfull
run: mvn -Dfull -B verify
spring_boot_3_3_x:
name: "Spring Boot 3.3.x"
runs-on: ubuntu-latest
timeout-minutes: 120
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 21 # Latest LTS if not Ubuntu
distribution: 'temurin'
cache: 'maven'
- name: Set release latest 3.3.x version
run: |
SPRING_VERSION="$(curl -s 'https://search.maven.org/solrsearch/select?q=g:org.springframework.boot+AND+a:spring-boot-starter+AND+v:3.3.*' | jq -r '.response.docs[0].v')"
mvn versions:set-property -Dproperty=version.org.springframework.boot -DnewVersion=$SPRING_VERSION
- name: Quickly build timefold-solver
run: mvn -B -Dquickly clean install
- name: Test Spring Boot 3.3.x
run: |
cd spring-integration
mvn -B verify
spring_boot_3_4_x:
name: "Spring Boot 3.4.x"
runs-on: ubuntu-latest
timeout-minutes: 120
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 21 # Latest LTS if not Ubuntu
distribution: 'temurin'
cache: 'maven'
- name: Set release latest 3.4.x version
run: |
SPRING_VERSION="$(curl -s 'https://search.maven.org/solrsearch/select?q=g:org.springframework.boot+AND+a:spring-boot-starter+AND+v:3.4.*' | jq -r '.response.docs[0].v')"
mvn versions:set-property -Dproperty=version.org.springframework.boot -DnewVersion=$SPRING_VERSION
- name: Quickly build timefold-solver
run: mvn -B -Dquickly clean install
- name: Test Spring Boot 3.4.x
run: |
cd spring-integration
mvn -B verify
python:
name: "Python Solver"
concurrency:
group: pull_request-python-${{ github.event_name }}-${{ github.head_ref }}-${{ matrix.os }}-${{ matrix.java-version }}
cancel-in-progress: true
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
java-version: [ 21 ] # Latest LTS if not Ubuntu
include:
- os: ubuntu-latest
java-version: 17
- os: ubuntu-latest
java-version: 24
timeout-minutes: 120
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: ${{matrix.java-version}}
distribution: 'temurin'
cache: 'maven'
# Need to install all Python versions in the same run for tox
- name: Python 3.10, Python 3.11, Python 3.12 Setup
uses: actions/setup-python@v5
with:
python-version: |
3.10
3.11
3.12
cache: 'pip'
cache-dependency-path: |
**/setup.py
- name: Install tox
run:
pip install tox build
- name: Run tox on Timefold Solver for Python test suite
run: python -m tox
- name: Run tox on jpyinterpreter test suite
working-directory: ./python/jpyinterpreter
run: python -m tox
native:
name: "Native Image"
concurrency:
group: pull_request_native-${{ github.event_name }}-${{ github.head_ref }}-${{matrix.os}}-${{ matrix.module }}-${{ matrix.java-version }}
cancel-in-progress: true
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ ubuntu-latest, ubuntu-24.04-arm ] # Windows doesn't work, Mac is not a deploy OS.
module: ["spring-integration", "quarkus-integration"]
java-version: [ 17, 21, 24 ] # LTS + latest.
exclude:
# Quarkus 3.17.2 has weird issues with Java 17 GraalVM,
# with Java 21+ GraalVM being recommended even for
# Java 17 projects.
# https://github.com/quarkusio/quarkus/issues/44877
- module: "quarkus-integration"
java-version: 17
timeout-minutes: 120
steps:
- uses: actions/checkout@v4
- uses: graalvm/setup-graalvm@01ed653ac833fe80569f1ef9f25585ba2811baab # v1
with:
java-version: ${{matrix.java-version}}
distribution: 'graalvm-community'
components: 'native-image'
github-token: ${{ secrets.GITHUB_TOKEN }}
cache: 'maven'
- name: Quickly build timefold-solver
run: mvn -B -Dquickly clean install
- name: Test timefold-solver in Native mode
run: |
cd ${{matrix.module}}
mvn -B -Dnative verify