-
Notifications
You must be signed in to change notification settings - Fork 23
294 lines (277 loc) · 12.2 KB
/
Copy pathmain.yml
File metadata and controls
294 lines (277 loc) · 12.2 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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
name: CI
on:
push:
branches: [ 'master', 'main', 'release/**' ]
pull_request:
branches: [ '*' ]
# Cancel superseded in-progress runs for the same PR. In-progress
# push runs are never cancelled, though a still-queued push run may
# be superseded by a newer queued one.
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
# Oracle JDK (Linux, Mac)
# Oracle JDK requires JAR to be signed for some classes to load/run
# properly, for example KeyAgreement. These tests are commented out
# here until we get a solution in place for CI JAR signing
#linux-oracle:
# strategy:
# matrix:
# os: [ 'ubuntu-latest', 'macos-latest' ]
# jdk_version: [ '17', '21', '24', '25' ]
# wolfssl_configure: [ '--enable-jni' ]
# name: ${{ matrix.os }} (Oracle JDK ${{ matrix.jdk_version }}, ${{ matrix.wolfssl_configure}})
# uses: ./.github/workflows/linux-common.yml
# with:
# os: ${{ matrix.os }}
# jdk_distro: "oracle"
# jdk_version: ${{ matrix.jdk_version }}
# wolfssl_configure: ${{ matrix.wolfssl_configure }}
# Zulu JDK (Linux, Mac)
linux-zulu:
strategy:
matrix:
os: [ 'ubuntu-latest', 'macos-latest' ]
jdk_version: [ '8', '11', '17', '21', '24', '25' ]
wolfssl_configure: [ '--enable-jni' ]
name: ${{ matrix.os }} (Zulu JDK ${{ matrix.jdk_version }}, ${{ matrix.wolfssl_configure}})
uses: ./.github/workflows/linux-common.yml
with:
os: ${{ matrix.os }}
jdk_distro: "zulu"
jdk_version: ${{ matrix.jdk_version }}
wolfssl_configure: ${{ matrix.wolfssl_configure }}
# Corretto JDK (Linux, Mac)
linux-corretto:
strategy:
matrix:
os: [ 'ubuntu-latest', 'macos-latest' ]
jdk_version: [ '8', '11', '17', '21', '24', '25' ]
wolfssl_configure: [ '--enable-jni' ]
name: ${{ matrix.os }} (Corretto JDK ${{ matrix.jdk_version }}, ${{ matrix.wolfssl_configure}})
uses: ./.github/workflows/linux-common.yml
with:
os: ${{ matrix.os }}
jdk_distro: "corretto"
jdk_version: ${{ matrix.jdk_version }}
wolfssl_configure: ${{ matrix.wolfssl_configure }}
# Temurin JDK (Linux, Mac)
# JDK 8 seems to have been removed from Temurin macos, with 8 we see the error
# Could not find satisfied version for SemVer '8'
linux-temurin:
strategy:
matrix:
os: [ 'ubuntu-latest', 'macos-latest' ]
jdk_version: [ '11', '17', '21', '24', '25' ]
wolfssl_configure: [ '--enable-jni' ]
name: ${{ matrix.os }} (Temurin JDK ${{ matrix.jdk_version }}, ${{ matrix.wolfssl_configure}})
uses: ./.github/workflows/linux-common.yml
with:
os: ${{ matrix.os }}
jdk_distro: "temurin"
jdk_version: ${{ matrix.jdk_version }}
wolfssl_configure: ${{ matrix.wolfssl_configure }}
# Microsoft JDK (Linux, Mac)
linux-microsoft:
strategy:
matrix:
os: [ 'ubuntu-latest', 'macos-latest' ]
jdk_version: [ '11.0.19', '17.0.7', '21.0.0', '25.0.0' ]
wolfssl_configure: [ '--enable-jni' ]
name: ${{ matrix.os }} (Microsoft JDK ${{ matrix.jdk_version }}, ${{ matrix.wolfssl_configure}})
uses: ./.github/workflows/linux-common.yml
with:
os: ${{ matrix.os }}
jdk_distro: "microsoft"
jdk_version: ${{ matrix.jdk_version }}
wolfssl_configure: ${{ matrix.wolfssl_configure }}
# -------------------- enable-all sanity checks -----------------------
# Only check one Linux and Mac JDK version with --enable-jni --enable-all
# as sanity. Using Zulu, but this can be expanded if needed.
linux-zulu-all:
strategy:
matrix:
os: [ 'ubuntu-latest', 'macos-latest' ]
jdk_version: [ '11' ]
wolfssl_configure: [ '--enable-jni --enable-all' ]
name: ${{ matrix.os }} (Zulu JDK ${{ matrix.jdk_version }}, ${{ matrix.wolfssl_configure}})
uses: ./.github/workflows/linux-common.yml
with:
os: ${{ matrix.os }}
jdk_distro: "zulu"
jdk_version: ${{ matrix.jdk_version }}
wolfssl_configure: ${{ matrix.wolfssl_configure }}
# ------------------ RSA 1024 min size sanity check -------------------
# Only check one Linux and Mac JDK version as a sanity check. Using Zulu,
# but this can be expanded if needed.
# wolfSSL ./configure:
# --enable-jni CFLAGS="-DRSA_MIN_SIZE=1024
linux-zulu-rsa-min-size:
strategy:
matrix:
os: [ 'ubuntu-latest', 'macos-latest' ]
jdk_version: [ '11' ]
wolfssl_configure: [ '--enable-jni CFLAGS="-DRSA_MIN_SIZE=1024"' ]
name: ${{ matrix.os }} (Zulu JDK ${{ matrix.jdk_version }}, ${{ matrix.wolfssl_configure}})
uses: ./.github/workflows/linux-common.yml
with:
os: ${{ matrix.os }}
jdk_distro: "zulu"
jdk_version: ${{ matrix.jdk_version }}
wolfssl_configure: ${{ matrix.wolfssl_configure }}
# -------------------- XMSS / XMSS^MT (RFC 8391) ----------------------
# XMSS is verify-only and requires wolfSSL 5.9.2 or later. XMSS is not pulled
# in by --enable-all, so it must be enabled explicitly with --enable-xmss.
# Permutations: the basic build, SHAKE parameter sets (--enable-sha3), and
# --enable-all plus XMSS.
linux-zulu-xmss:
strategy:
matrix:
os: [ 'ubuntu-latest', 'macos-latest' ]
jdk_version: [ '11', '21', '24' ]
wolfssl_configure:
- '--enable-jni --enable-xmss'
- '--enable-jni --enable-xmss --enable-sha3'
- '--enable-jni --enable-all --enable-xmss'
name: ${{ matrix.os }} (Zulu JDK ${{ matrix.jdk_version }}, ${{ matrix.wolfssl_configure }})
uses: ./.github/workflows/linux-common.yml
with:
os: ${{ matrix.os }}
jdk_distro: "zulu"
jdk_version: ${{ matrix.jdk_version }}
wolfssl_configure: ${{ matrix.wolfssl_configure }}
# ----------------------- LMS / HSS (RFC 8554) ------------------------
# LMS/HSS is verify-only in wolfJCE and requires wolfSSL to be built with
# --enable-lms. It is not pulled in by --enable-all, so it is enabled
# explicitly. The --enable-lms option is comma-separated and selects the
# build variant and hash/parameter families:
# (default) SHA-256/256 parameter sets, sign + verify
# verify-only -> WOLFSSL_LMS_VERIFY_ONLY (wolfJCE production posture)
# small -> WOLFSSL_WC_LMS_SMALL (low-memory, slower codepath)
# sha256-192 -> WOLFSSL_LMS_SHA256_192 (RFC 9858 SHA-256/192 sets)
# shake256 -> WOLFSSL_LMS_SHAKE256 (RFC 9858 SHAKE256 sets)
# The LMS JUnit tests skip per hash family not compiled in (the JNI import
# returns NOT_COMPILED_IN), so each permutation runs the KATs it can and
# skips the rest. SHAKE parameter sets additionally require --enable-sha3.
linux-zulu-lms:
strategy:
matrix:
os: [ 'ubuntu-latest', 'macos-latest' ]
jdk_version: [ '11', '21', '24' ]
wolfssl_configure:
- '--enable-jni --enable-lms'
- '--enable-jni --enable-lms=verify-only'
- '--enable-jni --enable-lms=verify-only,small'
- '--enable-jni --enable-lms=sha256-192,shake256 --enable-sha3'
- '--enable-jni --enable-all --enable-lms'
name: ${{ matrix.os }} (Zulu JDK ${{ matrix.jdk_version }}, ${{ matrix.wolfssl_configure }})
uses: ./.github/workflows/linux-common.yml
with:
os: ${{ matrix.os }}
jdk_distro: "zulu"
jdk_version: ${{ matrix.jdk_version }}
wolfssl_configure: ${{ matrix.wolfssl_configure }}
# ----------------------- SLH-DSA (FIPS 205) --------------------------
# SLH-DSA provides full keygen/sign/verify in wolfJCE and requires wolfSSL
# to be built with --enable-slhdsa. It is not pulled in by --enable-all.
# The --enable-slhdsa option is comma-separated:
# (default/yes) the six SHAKE parameter sets (128s/128f/192s/192f/
# 256s/256f), full keygen + sign + verify
# sha2 -> adds the six SHA2 parameter sets (SLH-DSA-SHA2-*)
# 128f, sha2-128f, ... -> select individual parameter sets
# small -> WOLFSSL_WC_SLHDSA_SMALL (low-memory codepath)
# small-mem -> WOLFSSL_WC_SLHDSA_SMALL_MEM (lower-memory codepath)
# verify-only -> WOLFSSL_SLHDSA_VERIFY_ONLY (no keygen/sign)
# Extra options do not imply 'yes': parameter sets must be selected via
# 'yes', 'sha2', or per-set tokens, otherwise no set is compiled in and
# native wolfSSL fails to build ("No parameters defined"). SHAKE256/SHA-3
# dependencies are auto-enabled by wolfSSL configure, so no --enable-sha3
# is needed. JUnit tests probe per parameter set and per capability, so
# each permutation runs what it can and skips the rest. Permutations:
# default SHAKE-only, all 12 sets, all 12 + small codepath, a reduced
# per-set selection + small-mem codepath, verify-only degradation, and
# --enable-all interop.
linux-zulu-slhdsa:
strategy:
matrix:
os: [ 'ubuntu-latest', 'macos-latest' ]
jdk_version: [ '11', '21', '24' ]
wolfssl_configure:
- '--enable-jni --enable-slhdsa'
- '--enable-jni --enable-slhdsa=yes,sha2'
- '--enable-jni --enable-slhdsa=yes,sha2,small'
- '--enable-jni --enable-slhdsa=128f,sha2-128f,small-mem'
- '--enable-jni --enable-slhdsa=yes,sha2,verify-only'
- '--enable-jni --enable-all --enable-slhdsa=yes,sha2'
name: ${{ matrix.os }} (Zulu JDK ${{ matrix.jdk_version }}, ${{ matrix.wolfssl_configure }})
uses: ./.github/workflows/linux-common.yml
with:
os: ${{ matrix.os }}
jdk_distro: "zulu"
jdk_version: ${{ matrix.jdk_version }}
wolfssl_configure: ${{ matrix.wolfssl_configure }}
# ------------------ Facebook Infer static analysis -------------------
# Run Facebook Infer over the Java sources, only running on Linux with
# one JDK/version for now. Infer only compiles the .java files with
# javac, so no native wolfSSL build or test run is needed here. Tests
# for the equivalent configuration run in linux-zulu-all above.
fb-infer:
strategy:
matrix:
os: [ 'ubuntu-latest' ]
jdk_version: [ '11' ]
name: Facebook Infer (${{ matrix.os }} Zulu JDK ${{ matrix.jdk_version }})
uses: ./.github/workflows/infer.yml
with:
os: ${{ matrix.os }}
jdk_distro: "zulu"
jdk_version: ${{ matrix.jdk_version }}
# --------------------- Maven build - test pom.xml --------------------
# Run Maven build over PR code, running on Linux and Mac with only one
# JDK/version for now.
maven-build:
strategy:
matrix:
os: [ 'ubuntu-latest', 'macos-latest' ]
jdk_version: [ '21' ]
wolfssl_configure: [ '--enable-jni' ]
name: Maven Build (${{ matrix.os }} Zulu JDK ${{ matrix.jdk_version }})
uses: ./.github/workflows/maven.yml
with:
os: ${{ matrix.os }}
jdk_distro: "zulu"
jdk_version: ${{ matrix.jdk_version }}
wolfssl_configure: ${{ matrix.wolfssl_configure }}
# --------------- AddressSanitizer build and test ------------------
# Run AddressSanitizer build and test on Linux only for memory error detection
address-sanitizer:
strategy:
matrix:
os: [ 'ubuntu-latest' ]
jdk_version: [ '21' ]
wolfssl_configure: [ '--enable-jni' ]
name: AddressSanitizer (${{ matrix.os }} Zulu JDK ${{ matrix.jdk_version }})
uses: ./.github/workflows/sanitizer-common.yml
with:
os: ${{ matrix.os }}
jdk_distro: "zulu"
jdk_version: ${{ matrix.jdk_version }}
wolfssl_configure: ${{ matrix.wolfssl_configure }}
# --------------- Filtered providers (native-free) -----------------
# Build/test the filtered-providers ant targets and Maven profile.
# JDK 8 added to verify it skips building filtered providers.
filtered-providers:
strategy:
matrix:
os: [ 'ubuntu-latest' ]
jdk_version: [ '8', '11', '17', '21', '24', '25' ]
name: Filtered Providers (${{ matrix.os }} Zulu JDK ${{ matrix.jdk_version }})
uses: ./.github/workflows/filtered-providers.yml
with:
os: ${{ matrix.os }}
jdk_distro: "zulu"
jdk_version: ${{ matrix.jdk_version }}
# ----------------- Windows Visual Studio build --------------------
windows-build:
uses: ./.github/workflows/windows-vs.yml