@@ -307,9 +307,26 @@ jobs:
307307 name : photonlib-offline
308308 path : output/*.zip
309309
310- # Shared steps for build-package jobs
311- x-build-package-steps : &build-package-steps
312- steps :
310+ build-package :
311+ needs : [build-gradle, build-offline-docs]
312+
313+ strategy :
314+ fail-fast : false
315+ matrix :
316+ include :
317+ - os : ubuntu-22.04
318+ artifact-name : Linux
319+ architecture : x64
320+ arch-override : linuxx64
321+ - os : ubuntu-22.04
322+ artifact-name : LinuxArm64
323+ architecture : x64
324+ arch-override : linuxarm64
325+
326+ runs-on : ${{ matrix.os }}
327+ name : " Build fat JAR - ${{ matrix.artifact-name }}"
328+
329+ steps : &build-package-steps
313330 - uses : actions/checkout@v4
314331 with :
315332 fetch-depth : 0
@@ -393,7 +410,7 @@ jobs:
393410 runs-on : ${{ matrix.os }}
394411 name : " Build fat JAR - ${{ matrix.artifact-name }}"
395412
396- << : *build-package-steps
413+ steps : *build-package-steps
397414
398415 build-package-windows :
399416 needs : [build-gradle, build-offline-docs]
@@ -410,28 +427,7 @@ jobs:
410427 runs-on : ${{ matrix.os }}
411428 name : " Build fat JAR - ${{ matrix.artifact-name }}"
412429
413- << : *build-package-steps
414-
415- build-package :
416- needs : [build-gradle, build-offline-docs]
417-
418- strategy :
419- fail-fast : false
420- matrix :
421- include :
422- - os : ubuntu-22.04
423- artifact-name : Linux
424- architecture : x64
425- arch-override : linuxx64
426- - os : ubuntu-22.04
427- artifact-name : LinuxArm64
428- architecture : x64
429- arch-override : linuxarm64
430-
431- runs-on : ${{ matrix.os }}
432- name : " Build fat JAR - ${{ matrix.artifact-name }}"
433-
434- << : *build-package-steps
430+ steps : *build-package-steps
435431
436432 run-smoketest-native :
437433 needs : [build-package, build-package-macos, build-package-windows]
0 commit comments