| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
name: Extended |
| 6 |
permissions: |
| 7 |
contents: read |
| 8 |
on: |
| 9 |
workflow_call: |
| 10 |
workflow_dispatch: |
| 11 |
|
| 12 |
jobs: |
| 13 |
build_kat: |
| 14 |
strategy: |
| 15 |
fail-fast: false |
| 16 |
matrix: |
| 17 |
external: |
| 18 |
- ${{ github.repository_owner != 'pq-code-package' }} |
| 19 |
target: |
| 20 |
- runner: macos-latest |
| 21 |
name: 'MacOS (aarch64)' |
| 22 |
arch: mac |
| 23 |
mode: native |
| 24 |
nix_shell: ci |
| 25 |
- runner: macos-15-intel |
| 26 |
name: 'MacOS (x86_64)' |
| 27 |
arch: mac |
| 28 |
mode: native |
| 29 |
nix_shell: ci |
| 30 |
- runner: ubuntu-24.04-arm |
| 31 |
name: 'ubuntu-latest (aarch64)' |
| 32 |
arch: aarch64 |
| 33 |
mode: native |
| 34 |
nix_shell: ci |
| 35 |
- runner: ubuntu-24.04-arm |
| 36 |
name: 'ubuntu-latest (aarch64)' |
| 37 |
arch: x86_64 |
| 38 |
mode: cross-x86_64 |
| 39 |
nix_shell: ci-cross-x86_64 |
| 40 |
- runner: ubuntu-24.04-arm |
| 41 |
name: 'ubuntu-latest (aarch64)' |
| 42 |
arch: riscv64 |
| 43 |
mode: cross-riscv64 |
| 44 |
nix_shell: ci-cross-riscv64 |
| 45 |
- runner: ubuntu-24.04-arm |
| 46 |
name: 'ubuntu-latest (aarch64)' |
| 47 |
arch: riscv32 |
| 48 |
mode: cross-riscv32 |
| 49 |
nix_shell: ci-cross-riscv32 |
| 50 |
- runner: ubuntu-24.04-arm |
| 51 |
name: 'ubuntu-latest (ppc64le)' |
| 52 |
arch: ppc64le |
| 53 |
mode: cross-ppc64le |
| 54 |
nix_shell: ci-cross-ppc64le |
| 55 |
- runner: ubuntu-latest |
| 56 |
name: 'ubuntu-latest (x86_64)' |
| 57 |
arch: x86_64 |
| 58 |
mode: native |
| 59 |
nix_shell: ci |
| 60 |
- runner: ubuntu-latest |
| 61 |
name: 'ubuntu-latest (x86_64)' |
| 62 |
arch: aarch64 |
| 63 |
mode: cross-aarch64 |
| 64 |
nix_shell: ci-cross-aarch64 |
| 65 |
- runner: ubuntu-latest |
| 66 |
name: 'ubuntu-latest (x86_64)' |
| 67 |
arch: aarch64_be |
| 68 |
mode: cross-aarch64_be |
| 69 |
nix_shell: ci-cross-aarch64_be |
| 70 |
exclude: |
| 71 |
- {external: true, |
| 72 |
target: { |
| 73 |
runner: ubuntu-24.04-arm, |
| 74 |
name: 'ubuntu-latest (aarch64)', |
| 75 |
arch: aarch64, |
| 76 |
mode: native, |
| 77 |
nix_shell: ci |
| 78 |
}} |
| 79 |
- {external: true, |
| 80 |
target: { |
| 81 |
runner: ubuntu-24.04-arm, |
| 82 |
name: 'ubuntu-latest (aarch64)', |
| 83 |
arch: x86_64, |
| 84 |
mode: cross-x86_64, |
| 85 |
nix_shell: ci-cross-x86_64 |
| 86 |
}} |
| 87 |
- {external: true, |
| 88 |
target: { |
| 89 |
runner: ubuntu-24.04-arm, |
| 90 |
name: 'ubuntu-latest (aarch64)', |
| 91 |
arch: riscv64, |
| 92 |
mode: cross-riscv64, |
| 93 |
nix_shell: ci-cross-riscv64 |
| 94 |
}} |
| 95 |
- {external: true, |
| 96 |
target: { |
| 97 |
runner: ubuntu-24.04-arm, |
| 98 |
name: 'ubuntu-latest (aarch64)', |
| 99 |
arch: riscv32, |
| 100 |
mode: cross-riscv32, |
| 101 |
nix_shell: ci-cross-riscv32 |
| 102 |
}} |
| 103 |
- {external: true, |
| 104 |
target: { |
| 105 |
runner: ubuntu-24.04-arm, |
| 106 |
name: 'ubuntu-latest (ppc64le)', |
| 107 |
arch: ppc64le, |
| 108 |
mode: cross-ppc64le, |
| 109 |
nix_shell: ci-cross-ppc64le |
| 110 |
}} |
| 111 |
- {external: true, |
| 112 |
target: { |
| 113 |
runner: ubuntu-latest, |
| 114 |
name: 'ubuntu-latest (x86_64)', |
| 115 |
arch: x86_64, |
| 116 |
mode: native, |
| 117 |
nix_shell: ci |
| 118 |
}} |
| 119 |
- {external: true, |
| 120 |
target: { |
| 121 |
runner: ubuntu-latest, |
| 122 |
name: 'ubuntu-latest (x86_64)', |
| 123 |
arch: aarch64, |
| 124 |
mode: cross-aarch64, |
| 125 |
nix_shell: ci-cross-aarch64 |
| 126 |
}} |
| 127 |
- {external: true, |
| 128 |
target: { |
| 129 |
runner: ubuntu-latest, |
| 130 |
name: 'ubuntu-latest (x86_64)', |
| 131 |
arch: aarch64_be, |
| 132 |
mode: cross-aarch64_be, |
| 133 |
nix_shell: ci-cross-aarch64_be |
| 134 |
}} |
| 135 |
name: Functional tests (${{ matrix.target.arch }}${{ matrix.target.mode != 'native' && ', cross' || ''}}) |
| 136 |
runs-on: ${{ matrix.target.runner }} |
| 137 |
steps: |
| 138 |
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 |
| 139 |
- name: build + test (no-opt) |
| 140 |
uses: ./.github/actions/multi-functest |
| 141 |
with: |
| 142 |
nix-shell: ${{ matrix.target.nix_shell }} |
| 143 |
nix-cache: ${{ matrix.target.mode == 'native' && 'false' || 'true' }} |
| 144 |
gh_token: ${{ secrets.GITHUB_TOKEN }} |
| 145 |
compile_mode: ${{ matrix.target.mode }} |
| 146 |
opt: 'no_opt' |
| 147 |
- name: build + test (+debug+memsan+ubsan, native) |
| 148 |
uses: ./.github/actions/multi-functest |
| 149 |
if: ${{ matrix.target.mode == 'native' }} |
| 150 |
with: |
| 151 |
gh_token: ${{ secrets.GITHUB_TOKEN }} |
| 152 |
compile_mode: native |
| 153 |
cflags: "-DMLDSA_DEBUG -fsanitize=address -fsanitize=undefined -fno-sanitize-recover=all" |
| 154 |
ldflags: "-fsanitize=address -fsanitize=undefined -fno-sanitize-recover=all" |
| 155 |
check_namespace: 'false' |
| 156 |
- name: build + test (cross, opt) |
| 157 |
uses: ./.github/actions/multi-functest |
| 158 |
|
| 159 |
if: ${{ matrix.target.mode != 'native' && (matrix.target.arch != 'ppc64le' && matrix.target.arch != 'riscv32' && matrix.target.arch != 'aarch64_be') }} |
| 160 |
with: |
| 161 |
nix-shell: ${{ matrix.target.nix_shell }} |
| 162 |
nix-cache: ${{ matrix.target.mode == 'native' && 'false' || 'true' }} |
| 163 |
gh_token: ${{ secrets.GITHUB_TOKEN }} |
| 164 |
compile_mode: ${{ matrix.target.mode }} |
| 165 |
opt: 'opt' |
| 166 |
- name: build + test (cross, opt, +debug) |
| 167 |
uses: ./.github/actions/multi-functest |
| 168 |
|
| 169 |
if: ${{ matrix.target.mode != 'native' && (matrix.target.arch != 'ppc64le' && matrix.target.arch != 'riscv32' && matrix.target.arch != 'aarch64_be') }} |
| 170 |
with: |
| 171 |
nix-shell: ${{ matrix.target.nix_shell }} |
| 172 |
nix-cache: ${{ matrix.target.mode == 'native' && 'false' || 'true' }} |
| 173 |
gh_token: ${{ secrets.GITHUB_TOKEN }} |
| 174 |
compile_mode: ${{ matrix.target.mode }} |
| 175 |
cflags: "-DMLDSA_DEBUG" |
| 176 |
opt: 'opt' |
| 177 |
backend_tests: |
| 178 |
name: AArch64 FIPS202 backends (${{ matrix.backend }}) |
| 179 |
strategy: |
| 180 |
fail-fast: false |
| 181 |
matrix: |
| 182 |
backend: [x1_scalar, x1_v84a, x2_v84a, x4_v8a_scalar, x4_v8a_v84a_scalar] |
| 183 |
runs-on: macos-latest |
| 184 |
steps: |
| 185 |
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 |
| 186 |
- name: build + test |
| 187 |
uses: ./.github/actions/multi-functest |
| 188 |
with: |
| 189 |
nix-shell: 'ci' |
| 190 |
nix-cache: 'false' |
| 191 |
gh_token: ${{ secrets.GITHUB_TOKEN }} |
| 192 |
compile_mode: 'native' |
| 193 |
opt: 'opt' |
| 194 |
examples: 'false' |
| 195 |
cflags: "-DMLDSA_DEBUG -fsanitize=address -fsanitize=undefined -fno-sanitize-recover=all" |
| 196 |
ldflags: "-fsanitize=address -fsanitize=undefined -fno-sanitize-recover=all" |
| 197 |
check_namespace: 'false' |
| 198 |
extra_args: "--fips202-aarch64-backend ${{ matrix.backend }}" |
| 199 |
compiler_tests: |
| 200 |
name: Compiler tests (${{ matrix.compiler.name }}, ${{ matrix.target.name }}, ${{ matrix.cflags }}) |
| 201 |
strategy: |
| 202 |
fail-fast: false |
| 203 |
matrix: |
| 204 |
cflags: [ "-O0", "-Os", "-O3" ] |
| 205 |
target: |
| 206 |
- runner: ubuntu-24.04-arm |
| 207 |
name: 'aarch64' |
| 208 |
- runner: ubuntu-latest |
| 209 |
name: 'x86_64' |
| 210 |
- runner: macos-latest |
| 211 |
name: 'macos' |
| 212 |
compiler: |
| 213 |
- name: gcc-4.8 |
| 214 |
shell: ci_gcc48 |
| 215 |
darwin: False |
| 216 |
c17: False |
| 217 |
c23: False |
| 218 |
opt: all |
| 219 |
examples: true |
| 220 |
- name: gcc-4.9 |
| 221 |
shell: ci_gcc49 |
| 222 |
darwin: False |
| 223 |
c17: False |
| 224 |
c23: False |
| 225 |
opt: all |
| 226 |
examples: true |
| 227 |
- name: gcc-7 |
| 228 |
shell: ci_gcc7 |
| 229 |
darwin: False |
| 230 |
c17: False |
| 231 |
c23: False |
| 232 |
opt: all |
| 233 |
examples: true |
| 234 |
- name: gcc-11 |
| 235 |
shell: ci_gcc11 |
| 236 |
darwin: True |
| 237 |
c17: True |
| 238 |
c23: False |
| 239 |
opt: all |
| 240 |
examples: true |
| 241 |
- name: gcc-13 |
| 242 |
shell: ci_gcc13 |
| 243 |
darwin: True |
| 244 |
c17: True |
| 245 |
c23: False |
| 246 |
opt: all |
| 247 |
examples: true |
| 248 |
- name: gcc-14 |
| 249 |
shell: ci_gcc14 |
| 250 |
darwin: True |
| 251 |
c17: True |
| 252 |
c23: True |
| 253 |
opt: all |
| 254 |
examples: true |
| 255 |
- name: gcc-15 |
| 256 |
shell: ci_gcc15 |
| 257 |
darwin: True |
| 258 |
c17: True |
| 259 |
c23: True |
| 260 |
opt: all |
| 261 |
examples: true |
| 262 |
- name: clang-18 |
| 263 |
shell: ci_clang18 |
| 264 |
darwin: True |
| 265 |
c17: True |
| 266 |
c23: True |
| 267 |
opt: all |
| 268 |
examples: true |
| 269 |
- name: clang-19 |
| 270 |
shell: ci_clang19 |
| 271 |
darwin: True |
| 272 |
c17: True |
| 273 |
c23: True |
| 274 |
opt: all |
| 275 |
examples: true |
| 276 |
- name: clang-20 |
| 277 |
shell: ci_clang20 |
| 278 |
darwin: True |
| 279 |
c17: True |
| 280 |
c23: True |
| 281 |
opt: all |
| 282 |
examples: true |
| 283 |
- name: clang-21 |
| 284 |
shell: ci_clang21 |
| 285 |
darwin: True |
| 286 |
c17: True |
| 287 |
c23: True |
| 288 |
opt: all |
| 289 |
examples: true |
| 290 |
|
| 291 |
|
| 292 |
|
| 293 |
|
| 294 |
|
| 295 |
|
| 296 |
- name: zig-0.12 |
| 297 |
shell: ci_zig0_12 |
| 298 |
darwin: True |
| 299 |
c17: True |
| 300 |
c23: False |
| 301 |
examples: False |
| 302 |
opt: no_opt |
| 303 |
- name: zig-0.13 |
| 304 |
shell: ci_zig0_13 |
| 305 |
darwin: True |
| 306 |
c17: True |
| 307 |
c23: False |
| 308 |
examples: False |
| 309 |
opt: no_opt |
| 310 |
- name: zig-0.14 |
| 311 |
shell: ci_zig0_14 |
| 312 |
darwin: True |
| 313 |
c17: True |
| 314 |
c23: True |
| 315 |
examples: False |
| 316 |
opt: no_opt |
| 317 |
- name: zig-0.15 |
| 318 |
shell: ci_zig0_15 |
| 319 |
darwin: True |
| 320 |
c17: True |
| 321 |
c23: True |
| 322 |
examples: False |
| 323 |
opt: no_opt |
| 324 |
runs-on: ${{ matrix.target.runner }} |
| 325 |
steps: |
| 326 |
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 |
| 327 |
- name: native build+functest (default) |
| 328 |
if: ${{ matrix.compiler.darwin || matrix.target.runner != 'macos-latest' }} |
| 329 |
uses: ./.github/actions/multi-functest |
| 330 |
with: |
| 331 |
gh_token: ${{ secrets.GITHUB_TOKEN }} |
| 332 |
compile_mode: native |
| 333 |
func: true |
| 334 |
kat: false |
| 335 |
acvp: false |
| 336 |
examples: ${{ matrix.compiler.examples }} |
| 337 |
opt: ${{ matrix.compiler.opt }} |
| 338 |
nix-shell: ${{ matrix.compiler.shell }} |
| 339 |
cflags: "${{ matrix.cflags }}" |
| 340 |
- name: native build+functest (C90) |
| 341 |
if: ${{ matrix.compiler.darwin || matrix.target.runner != 'macos-latest' }} |
| 342 |
uses: ./.github/actions/multi-functest |
| 343 |
with: |
| 344 |
gh_token: ${{ secrets.GITHUB_TOKEN }} |
| 345 |
compile_mode: native |
| 346 |
func: true |
| 347 |
kat: false |
| 348 |
acvp: false |
| 349 |
examples: ${{ matrix.compiler.examples }} |
| 350 |
opt: ${{ matrix.compiler.opt }} |
| 351 |
nix-shell: ${{ matrix.compiler.shell }} |
| 352 |
cflags: "-std=c90 ${{ matrix.cflags }}" |
| 353 |
- name: native build+functest (C99) |
| 354 |
if: ${{ matrix.compiler.darwin || matrix.target.runner != 'macos-latest' }} |
| 355 |
uses: ./.github/actions/multi-functest |
| 356 |
with: |
| 357 |
gh_token: ${{ secrets.GITHUB_TOKEN }} |
| 358 |
compile_mode: native |
| 359 |
func: true |
| 360 |
kat: false |
| 361 |
acvp: false |
| 362 |
examples: ${{ matrix.compiler.examples }} |
| 363 |
opt: ${{ matrix.compiler.opt }} |
| 364 |
nix-shell: ${{ matrix.compiler.shell }} |
| 365 |
cflags: "-std=c99 ${{ matrix.cflags }}" |
| 366 |
- name: native build+functest (C11) |
| 367 |
if: ${{ matrix.compiler.darwin || matrix.target.runner != 'macos-latest' }} |
| 368 |
uses: ./.github/actions/multi-functest |
| 369 |
with: |
| 370 |
gh_token: ${{ secrets.GITHUB_TOKEN }} |
| 371 |
compile_mode: native |
| 372 |
func: true |
| 373 |
kat: false |
| 374 |
acvp: false |
| 375 |
examples: ${{ matrix.compiler.examples }} |
| 376 |
opt: ${{ matrix.compiler.opt }} |
| 377 |
nix-shell: ${{ matrix.compiler.shell }} |
| 378 |
cflags: "-std=c11 ${{ matrix.cflags }}" |
| 379 |
- name: native build+functest (C17) |
| 380 |
if: ${{ (matrix.compiler.darwin || matrix.target.runner != 'macos-latest') && |
| 381 |
matrix.compiler.c17 }} |
| 382 |
uses: ./.github/actions/multi-functest |
| 383 |
with: |
| 384 |
gh_token: ${{ secrets.GITHUB_TOKEN }} |
| 385 |
compile_mode: native |
| 386 |
func: true |
| 387 |
kat: false |
| 388 |
acvp: false |
| 389 |
examples: ${{ matrix.compiler.examples }} |
| 390 |
opt: ${{ matrix.compiler.opt }} |
| 391 |
nix-shell: ${{ matrix.compiler.shell }} |
| 392 |
cflags: "-std=c17 ${{ matrix.cflags }}" |
| 393 |
- name: native build+functest (C23) |
| 394 |
if: ${{ (matrix.compiler.darwin || matrix.target.runner != 'macos-latest') && |
| 395 |
matrix.compiler.c23 }} |
| 396 |
uses: ./.github/actions/multi-functest |
| 397 |
with: |
| 398 |
gh_token: ${{ secrets.GITHUB_TOKEN }} |
| 399 |
compile_mode: native |
| 400 |
func: true |
| 401 |
kat: false |
| 402 |
acvp: false |
| 403 |
examples: ${{ matrix.compiler.examples }} |
| 404 |
opt: ${{ matrix.compiler.opt }} |
| 405 |
nix-shell: ${{ matrix.compiler.shell }} |
| 406 |
cflags: "-std=c23 ${{ matrix.cflags }}" |
| 407 |
stack_analysis: |
| 408 |
name: Stack analysis (${{ matrix.target.name }}, ${{ matrix.cflags }}) |
| 409 |
strategy: |
| 410 |
fail-fast: false |
| 411 |
matrix: |
| 412 |
external: |
| 413 |
- ${{ github.repository_owner != 'pq-code-package' }} |
| 414 |
target: |
| 415 |
- runner: ubuntu-latest |
| 416 |
name: x86_64 |
| 417 |
- runner: ubuntu-24.04-arm |
| 418 |
name: aarch64 |
| 419 |
cflags: |
| 420 |
- '-O3' |
| 421 |
- '-Os' |
| 422 |
- '-O3 -DMLD_CONFIG_REDUCE_RAM' |
| 423 |
- '-Os -DMLD_CONFIG_REDUCE_RAM' |
| 424 |
exclude: |
| 425 |
- external: true |
| 426 |
runs-on: ${{ matrix.target.runner }} |
| 427 |
steps: |
| 428 |
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 |
| 429 |
- name: Stack analysis |
| 430 |
uses: ./.github/actions/multi-functest |
| 431 |
with: |
| 432 |
gh_token: ${{ secrets.GITHUB_TOKEN }} |
| 433 |
compile_mode: native |
| 434 |
nix-shell: ci_valgrind-varlat_gcc15 |
| 435 |
nix-cache: false |
| 436 |
opt: all |
| 437 |
cflags: "${{ matrix.cflags }}" |
| 438 |
func: false |
| 439 |
kat: false |
| 440 |
acvp: false |
| 441 |
examples: false |
| 442 |
stack: true |
| 443 |
check_namespace: false |
| 444 |
config_variations: |
| 445 |
name: Non-standard configurations |
| 446 |
strategy: |
| 447 |
fail-fast: false |
| 448 |
matrix: |
| 449 |
external: |
| 450 |
- ${{ github.repository_owner != 'pq-code-package' }} |
| 451 |
target: |
| 452 |
- runner: ubuntu-24.04-arm |
| 453 |
name: 'ubuntu-latest (aarch64)' |
| 454 |
- runner: ubuntu-latest |
| 455 |
name: 'ubuntu-latest (x86_64)' |
| 456 |
exclude: |
| 457 |
- {external: true, |
| 458 |
target: { |
| 459 |
runner: ubuntu-24.04-arm, |
| 460 |
name: 'ubuntu-latest (aarch64)', |
| 461 |
}} |
| 462 |
- {external: true, |
| 463 |
target: { |
| 464 |
runner: ubuntu-latest, |
| 465 |
name: 'ubuntu-latest (x86_64)', |
| 466 |
}} |
| 467 |
runs-on: ${{ matrix.target.runner }} |
| 468 |
steps: |
| 469 |
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 |
| 470 |
- name: "Config Variations" |
| 471 |
uses: ./.github/actions/config-variations |
| 472 |
with: |
| 473 |
gh_token: ${{ secrets.GITHUB_TOKEN }} |
| 474 |
check-cf-protections: |
| 475 |
name: Test control-flow protections (${{ matrix.compiler.name }}, x86_64) |
| 476 |
strategy: |
| 477 |
fail-fast: false |
| 478 |
matrix: |
| 479 |
compiler: |
| 480 |
- name: gcc-14 |
| 481 |
shell: ci_gcc14 |
| 482 |
- name: gcc-15 |
| 483 |
shell: ci_gcc15 |
| 484 |
- name: clang-19 |
| 485 |
shell: ci_clang19 |
| 486 |
|
| 487 |
runs-on: ubuntu-latest |
| 488 |
steps: |
| 489 |
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 |
| 490 |
- name: Test control-flow protections |
| 491 |
uses: ./.github/actions/multi-functest |
| 492 |
with: |
| 493 |
gh_token: ${{ secrets.GITHUB_TOKEN }} |
| 494 |
compile_mode: native |
| 495 |
cflags: "-Wl,-z,cet-report=error -fcf-protection=full" |
| 496 |
func: true |
| 497 |
kat: true |
| 498 |
acvp: true |
| 499 |
nix-shell: ${{ matrix.compiler.shell }} |
| 500 |
|
| 501 |
check-apis: |
| 502 |
strategy: |
| 503 |
fail-fast: false |
| 504 |
matrix: |
| 505 |
external: |
| 506 |
- ${{ github.repository_owner != 'pq-code-package' }} |
| 507 |
target: |
| 508 |
- runner: ubuntu-24.04-arm |
| 509 |
name: 'aarch64' |
| 510 |
- runner: ubuntu-latest |
| 511 |
name: 'x86_64' |
| 512 |
exclude: |
| 513 |
- {external: true, |
| 514 |
target: { |
| 515 |
runner: ubuntu-24.04-arm, |
| 516 |
name: 'aarch64' |
| 517 |
}} |
| 518 |
name: Check API consistency |
| 519 |
runs-on: ${{ matrix.target.runner }} |
| 520 |
steps: |
| 521 |
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 |
| 522 |
- name: make quickcheck |
| 523 |
run: | |
| 524 |
OPT=0 CFLAGS="-Imldsa -DMLD_CHECK_APIS -Wno-redundant-decls" make quickcheck |
| 525 |
make clean >/dev/null |
| 526 |
OPT=1 CFLAGS="-Imldsa -DMLD_CHECK_APIS -Wno-redundant-decls" make quickcheck |
| 527 |
- uses: ./.github/actions/setup-apt |
| 528 |
- name: tests func |
| 529 |
run: | |
| 530 |
./scripts/tests func --cflags="-Imldsa -DMLD_CHECK_APIS -Wno-redundant-decls" |
| 531 |
ec2_functests: |
| 532 |
strategy: |
| 533 |
fail-fast: false |
| 534 |
matrix: |
| 535 |
target: |
| 536 |
- name: AMD EPYC 4th gen (t3a) |
| 537 |
ec2_instance_type: t3a.small |
| 538 |
ec2_ami: ubuntu-latest (x86_64) |
| 539 |
ec2_volume_size: 20 |
| 540 |
compile_mode: native |
| 541 |
opt: all |
| 542 |
config_variations: 'native-cap-CPUID_AVX2' |
| 543 |
- name: Intel Xeon 4th gen (t3) |
| 544 |
ec2_instance_type: t3.small |
| 545 |
ec2_ami: ubuntu-latest (x86_64) |
| 546 |
ec2_volume_size: 20 |
| 547 |
compile_mode: native |
| 548 |
opt: all |
| 549 |
config_variations: 'native-cap-CPUID_AVX2' |
| 550 |
- name: Graviton2 (c6g.medium) |
| 551 |
ec2_instance_type: c6g.medium |
| 552 |
ec2_ami: ubuntu-latest (aarch64) |
| 553 |
ec2_volume_size: 20 |
| 554 |
compile_mode: native |
| 555 |
opt: all |
| 556 |
config_variations: 'native-cap-ON native-cap-OFF native-cap-ID_AA64PFR1_EL1' |
| 557 |
- name: Graviton3 (c7g.medium) |
| 558 |
ec2_instance_type: c7g.medium |
| 559 |
ec2_ami: ubuntu-latest (aarch64) |
| 560 |
ec2_volume_size: 20 |
| 561 |
compile_mode: native |
| 562 |
opt: all |
| 563 |
config_variations: 'native-cap-ID_AA64PFR1_EL1' |
| 564 |
name: Platform tests (${{ matrix.target.name }}) |
| 565 |
permissions: |
| 566 |
contents: 'read' |
| 567 |
id-token: 'write' |
| 568 |
if: github.repository_owner == 'pq-code-package' && !github.event.pull_request.head.repo.fork |
| 569 |
uses: ./.github/workflows/ci_ec2_reusable.yml |
| 570 |
with: |
| 571 |
name: ${{ matrix.target.name }} |
| 572 |
ec2_instance_type: ${{ matrix.target.ec2_instance_type }} |
| 573 |
ec2_ami: ${{ matrix.target.ec2_ami }} |
| 574 |
ec2_ami_id: ${{ matrix.target.ec2_ami_id }} |
| 575 |
compile_mode: ${{ matrix.target.compile_mode }} |
| 576 |
opt: ${{ matrix.target.opt }} |
| 577 |
config_variations: ${{ matrix.target.config_variations || '' }} |
| 578 |
functest: true |
| 579 |
kattest: true |
| 580 |
acvptest: true |
| 581 |
lint: false |
| 582 |
verbose: true |
| 583 |
secrets: inherit |
| 584 |
compatibility_tests: |
| 585 |
strategy: |
| 586 |
max-parallel: 4 |
| 587 |
fail-fast: false |
| 588 |
matrix: |
| 589 |
container: |
| 590 |
- id: debian:bullseye |
| 591 |
- id: debian:bookworm |
| 592 |
- id: nixos/nix:latest |
| 593 |
nix_shell: 'nix-shell -p python3 gcc gnumake perl' |
| 594 |
name: Compatibility tests (${{ matrix.container.id }}) |
| 595 |
runs-on: ubuntu-latest |
| 596 |
container: |
| 597 |
${{ matrix.container.id }} |
| 598 |
steps: |
| 599 |
|
| 600 |
|
| 601 |
|
| 602 |
|
| 603 |
|
| 604 |
- name: Manual checkout |
| 605 |
shell: bash |
| 606 |
run: | |
| 607 |
if (which yum > /dev/null); then |
| 608 |
yum install git -y |
| 609 |
elif (which apt > /dev/null); then |
| 610 |
apt update |
| 611 |
apt install git -y |
| 612 |
fi |
| 613 |
|
| 614 |
git config --global --add safe.directory $GITHUB_WORKSPACE |
| 615 |
git init |
| 616 |
git remote add origin $GITHUB_SERVER_URL/$GITHUB_REPOSITORY |
| 617 |
git fetch origin --depth 1 $GITHUB_SHA |
| 618 |
git checkout FETCH_HEAD |
| 619 |
- uses: ./.github/actions/setup-os |
| 620 |
with: |
| 621 |
sudo: "" |
| 622 |
- name: make quickcheck |
| 623 |
shell: bash |
| 624 |
run: | |
| 625 |
if [ -n "${{ matrix.container.nix_shell }}" ]; then |
| 626 |
${{ matrix.container.nix_shell }} --run "CC=gcc OPT=0 make quickcheck && make clean >/dev/null && CC=gcc OPT=1 make quickcheck" |
| 627 |
else |
| 628 |
CC=gcc OPT=0 make quickcheck |
| 629 |
make clean >/dev/null |
| 630 |
CC=gcc OPT=1 make quickcheck |
| 631 |
fi |
| 632 |
- name: Functional Tests |
| 633 |
uses: ./.github/actions/multi-functest |
| 634 |
with: |
| 635 |
nix-shell: "" |
| 636 |
custom_shell: ${{ matrix.container.nix_shell && format('{0} --run \"bash -e {{0}}\"', matrix.container.nix_shell) || 'bash' }} |
| 637 |
gh_token: ${{ secrets.GITHUB_TOKEN }} |
| 638 |
ec2_compatibilitytests: |
| 639 |
strategy: |
| 640 |
max-parallel: 8 |
| 641 |
fail-fast: false |
| 642 |
matrix: |
| 643 |
container: |
| 644 |
- id: amazonlinux-2-aarch:base |
| 645 |
|
| 646 |
quickcheck: false |
| 647 |
acvptest: false |
| 648 |
- id: amazonlinux-2-aarch:gcc-7x |
| 649 |
|
| 650 |
quickcheck: false |
| 651 |
acvptest: false |
| 652 |
- id: amazonlinux-2-aarch:clang-7x |
| 653 |
|
| 654 |
quickcheck: false |
| 655 |
acvptest: false |
| 656 |
- id: amazonlinux-2023-aarch:base |
| 657 |
quickcheck: true |
| 658 |
acvptest: true |
| 659 |
- id: amazonlinux-2023-aarch:gcc-11x |
| 660 |
quickcheck: true |
| 661 |
acvptest: true |
| 662 |
- id: amazonlinux-2023-aarch:clang-15x |
| 663 |
quickcheck: true |
| 664 |
acvptest: true |
| 665 |
- id: amazonlinux-2023-aarch:clang-15x-sanitizer |
| 666 |
quickcheck: true |
| 667 |
acvptest: true |
| 668 |
|
| 669 |
- id: ubuntu-22.04-aarch:gcc-12x |
| 670 |
quickcheck: true |
| 671 |
acvptest: true |
| 672 |
- id: ubuntu-22.04-aarch:gcc-11x |
| 673 |
quickcheck: true |
| 674 |
acvptest: true |
| 675 |
- id: ubuntu-20.04-aarch:gcc-8x |
| 676 |
quickcheck: true |
| 677 |
acvptest: true |
| 678 |
- id: ubuntu-20.04-aarch:gcc-7x |
| 679 |
quickcheck: true |
| 680 |
acvptest: true |
| 681 |
- id: ubuntu-20.04-aarch:clang-9x |
| 682 |
quickcheck: true |
| 683 |
acvptest: true |
| 684 |
- id: ubuntu-20.04-aarch:clang-8x |
| 685 |
quickcheck: true |
| 686 |
acvptest: true |
| 687 |
- id: ubuntu-20.04-aarch:clang-7x-bm-framework |
| 688 |
quickcheck: true |
| 689 |
acvptest: true |
| 690 |
- id: ubuntu-20.04-aarch:clang-7x |
| 691 |
quickcheck: true |
| 692 |
acvptest: true |
| 693 |
- id: ubuntu-20.04-aarch:clang-10x |
| 694 |
quickcheck: true |
| 695 |
acvptest: true |
| 696 |
- id: ubuntu-22.04-aarch:base |
| 697 |
quickcheck: true |
| 698 |
acvptest: true |
| 699 |
- id: ubuntu-20.04-aarch:base |
| 700 |
quickcheck: true |
| 701 |
acvptest: true |
| 702 |
name: Compatibility tests (${{ matrix.container.id }}) |
| 703 |
permissions: |
| 704 |
contents: 'read' |
| 705 |
id-token: 'write' |
| 706 |
uses: ./.github/workflows/ci_ec2_container.yml |
| 707 |
if: github.repository_owner == 'pq-code-package' && !github.event.pull_request.head.repo.fork |
| 708 |
with: |
| 709 |
container: ${{ matrix.container.id }} |
| 710 |
name: ${{ matrix.container.id }} |
| 711 |
ec2_instance_type: t4g.small |
| 712 |
ec2_ami: ubuntu-latest (custom AMI) |
| 713 |
ec2_ami_id: ami-0c9bc1901ef0d1066 |
| 714 |
compile_mode: native |
| 715 |
opt: all |
| 716 |
functest: true |
| 717 |
kattest: true |
| 718 |
acvptest: ${{ matrix.container.acvptest }} |
| 719 |
quickcheck: ${{ matrix.container.quickcheck }} |
| 720 |
lint: false |
| 721 |
verbose: true |
| 722 |
cflags: "-O0" |
| 723 |
secrets: inherit |
| 724 |
check_autogenerated_files: |
| 725 |
strategy: |
| 726 |
fail-fast: false |
| 727 |
matrix: |
| 728 |
target: |
| 729 |
- system: macos-latest |
| 730 |
nix_shell: 'ci-cross-x86_64' |
| 731 |
nix_cache: 'true' |
| 732 |
extra_args: '--force-cross' |
| 733 |
|
| 734 |
|
| 735 |
|
| 736 |
|
| 737 |
- system: ubuntu-latest |
| 738 |
nix_shell: 'ci-cross-aarch64' |
| 739 |
nix_cache: 'true' |
| 740 |
extra_args: '--force-cross' |
| 741 |
- system: ubuntu-24.04-arm |
| 742 |
nix_shell: 'ci-cross-x86_64' |
| 743 |
nix_cache: 'true' |
| 744 |
extra_args: '--force-cross' |
| 745 |
runs-on: ${{ matrix.target.system }} |
| 746 |
name: Check autogenerated files |
| 747 |
steps: |
| 748 |
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 |
| 749 |
- uses: ./.github/actions/setup-shell |
| 750 |
with: |
| 751 |
nix-shell: ${{ matrix.target.nix_shell }} |
| 752 |
nix-cache: ${{ matrix.target.nix_cache }} |
| 753 |
gh_token: ${{ secrets.GITHUB_TOKEN }} |
| 754 |
script: | |
| 755 |
python3 ./scripts/autogen --dry-run ${{ matrix.target.extra_args }} |
| 756 |
check_hol_light_object_code: |
| 757 |
strategy: |
| 758 |
fail-fast: false |
| 759 |
matrix: |
| 760 |
target: |
| 761 |
- system: macos-latest |
| 762 |
nix_cache: 'true' |
| 763 |
nix_shell: 'hol_light-cross-x86_64' |
| 764 |
extra_args: '--force-cross' |
| 765 |
|
| 766 |
|
| 767 |
|
| 768 |
|
| 769 |
- system: ubuntu-latest |
| 770 |
nix_shell: 'hol_light-cross-aarch64' |
| 771 |
nix_cache: 'true' |
| 772 |
extra_args: '--force-cross' |
| 773 |
- system: ubuntu-24.04-arm |
| 774 |
nix_shell: 'hol_light-cross-x86_64' |
| 775 |
nix_cache: 'true' |
| 776 |
extra_args: '--force-cross' |
| 777 |
runs-on: ${{ matrix.target.system }} |
| 778 |
name: Check object code in HOL-Light proofs |
| 779 |
steps: |
| 780 |
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 |
| 781 |
- uses: ./.github/actions/setup-shell |
| 782 |
with: |
| 783 |
nix-shell: ${{ matrix.target.nix_shell }} |
| 784 |
nix-cache: ${{ matrix.target.nix_cache }} |
| 785 |
gh_token: ${{ secrets.GITHUB_TOKEN }} |
| 786 |
script: | |
| 787 |
python3 ./scripts/autogen --dry-run --update-hol-light-bytecode ${{ matrix.target.extra_args }} |