Skip to content

Commit ef3b514

Browse files
committed
ci: Use YAML anchor and aliases for repeated "Print logs" steps
1 parent 50e73c6 commit ef3b514

File tree

1 file changed

+14
-41
lines changed

1 file changed

+14
-41
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ jobs:
119119
dockerfile: ./ci/linux-debian.Dockerfile
120120
tag: x64-debian-image
121121

122-
- name: Print logs
122+
- &print-logs
123+
name: Print logs
123124
uses: ./.github/actions/print-logs
124125
if: ${{ !cancelled() }}
125126

@@ -154,9 +155,7 @@ jobs:
154155
dockerfile: ./ci/linux-debian.Dockerfile
155156
tag: x64-debian-image
156157

157-
- name: Print logs
158-
uses: ./.github/actions/print-logs
159-
if: ${{ !cancelled() }}
158+
- *print-logs
160159

161160
s390x_debian:
162161
name: "s390x (big-endian): Linux (Debian stable, QEMU)"
@@ -185,10 +184,7 @@ jobs:
185184
dockerfile: ./ci/linux-debian.Dockerfile
186185
tag: x64-debian-image
187186

188-
- name: Print logs
189-
uses: ./.github/actions/print-logs
190-
if: ${{ !cancelled() }}
191-
187+
- *print-logs
192188

193189
arm32_debian:
194190
name: "ARM32: Linux (Debian stable, QEMU)"
@@ -225,9 +221,7 @@ jobs:
225221
dockerfile: ./ci/linux-debian.Dockerfile
226222
tag: x64-debian-image
227223

228-
- name: Print logs
229-
uses: ./.github/actions/print-logs
230-
if: ${{ !cancelled() }}
224+
- *print-logs
231225

232226
arm64-debian:
233227
name: "arm64: Linux (Debian stable)"
@@ -264,9 +258,7 @@ jobs:
264258
dockerfile: ./ci/linux-debian.Dockerfile
265259
tag: arm64-debian-image
266260

267-
- name: Print logs
268-
uses: ./.github/actions/print-logs
269-
if: ${{ !cancelled() }}
261+
- *print-logs
270262

271263
ppc64le_debian:
272264
name: "ppc64le: Linux (Debian stable, QEMU)"
@@ -295,10 +287,7 @@ jobs:
295287
dockerfile: ./ci/linux-debian.Dockerfile
296288
tag: x64-debian-image
297289

298-
- name: Print logs
299-
uses: ./.github/actions/print-logs
300-
if: ${{ !cancelled() }}
301-
290+
- *print-logs
302291

303292
valgrind_debian:
304293
name: "Valgrind ${{ matrix.binary_arch }} (memcheck)"
@@ -357,9 +346,7 @@ jobs:
357346
dockerfile: ./ci/linux-debian.Dockerfile
358347
tag: ${{ matrix.docker_arch }}-debian-image
359348

360-
- name: Print logs
361-
uses: ./.github/actions/print-logs
362-
if: ${{ !cancelled() }}
349+
- *print-logs
363350

364351
sanitizers_debian:
365352
name: "UBSan, ASan, LSan"
@@ -400,9 +387,7 @@ jobs:
400387
dockerfile: ./ci/linux-debian.Dockerfile
401388
tag: x64-debian-image
402389

403-
- name: Print logs
404-
uses: ./.github/actions/print-logs
405-
if: ${{ !cancelled() }}
390+
- *print-logs
406391

407392
msan_debian:
408393
name: "MSan"
@@ -450,10 +435,7 @@ jobs:
450435
dockerfile: ./ci/linux-debian.Dockerfile
451436
tag: x64-debian-image
452437

453-
- name: Print logs
454-
uses: ./.github/actions/print-logs
455-
if: ${{ !cancelled() }}
456-
438+
- *print-logs
457439

458440
mingw_debian:
459441
name: ${{ matrix.configuration.job_name }}
@@ -492,9 +474,7 @@ jobs:
492474
dockerfile: ./ci/linux-debian.Dockerfile
493475
tag: x64-debian-image
494476

495-
- name: Print logs
496-
uses: ./.github/actions/print-logs
497-
if: ${{ !cancelled() }}
477+
- *print-logs
498478

499479
x86_64-macos-native:
500480
name: "x86_64: macOS Ventura, Valgrind"
@@ -543,9 +523,7 @@ jobs:
543523
python3 -m pip install lief
544524
python3 ./tools/symbol-check.py .libs/libsecp256k1.dylib
545525
546-
- name: Print logs
547-
uses: ./.github/actions/print-logs
548-
if: ${{ !cancelled() }}
526+
- *print-logs
549527

550528
arm64-macos-native:
551529
name: "ARM64: macOS Sonoma"
@@ -595,10 +573,7 @@ jobs:
595573
python3 -m pip install lief
596574
python3 ./tools/symbol-check.py .libs/libsecp256k1.dylib
597575
598-
- name: Print logs
599-
uses: ./.github/actions/print-logs
600-
if: ${{ !cancelled() }}
601-
576+
- *print-logs
602577

603578
win64-native:
604579
name: ${{ matrix.configuration.job_name }}
@@ -695,9 +670,7 @@ jobs:
695670
dockerfile: ./ci/linux-debian.Dockerfile
696671
tag: x64-debian-image
697672

698-
- name: Print logs
699-
uses: ./.github/actions/print-logs
700-
if: ${{ !cancelled() }}
673+
- *print-logs
701674

702675
cxx_headers_debian:
703676
name: "C++ (public headers)"

0 commit comments

Comments
 (0)