Skip to content

Commit 8a71458

Browse files
WIP
1 parent 3e16f7f commit 8a71458

File tree

2 files changed

+50
-45
lines changed

2 files changed

+50
-45
lines changed

.github/actions/print-logs/action.yml

+24-32
Original file line numberDiff line numberDiff line change
@@ -3,35 +3,27 @@ description: "Print the log files produced by ci/ci.sh"
33
runs:
44
using: "composite"
55
steps:
6-
- run: cat test-suite.log || true
7-
shell: bash
8-
if: ${{ always() }}
9-
- run: cat tests.log || true
10-
shell: bash
11-
if: ${{ always() }}
12-
- run: cat noverify_tests.log || true
13-
shell: bash
14-
if: ${{ always() }}
15-
- run: cat exhaustive_tests.log || true
16-
shell: bash
17-
if: ${{ always() }}
18-
- run: cat ctime_tests.log || true
19-
shell: bash
20-
if: ${{ always() }}
21-
- run: cat bench.log || true
22-
shell: bash
23-
if: ${{ always() }}
24-
- name: All "*_example.log" files
25-
shell: bash
26-
run: for i in *_example.log; do echo; echo "=================== $i ===================="; cat "$i"; done
27-
if: ${{ always() }}
28-
- run: cat config.log || true
29-
shell: bash
30-
if: ${{ always() }}
31-
- run: cat test_env.log || true
32-
shell: bash
33-
if: ${{ always() }}
34-
- name: CI env
35-
run: env
36-
shell: bash
37-
if: ${{ always() }}
6+
- shell: bash
7+
run: |
8+
group() {
9+
title=$1
10+
echo "::group::$title"
11+
}
12+
endgroup() {
13+
echo "::endgroup::"
14+
}
15+
cat_file() {
16+
file=$1
17+
group "$file $comment"
18+
cat "$file"
19+
endgroup
20+
}
21+
22+
shopt -s nullglob
23+
for file in *.log; do
24+
cat_file "$file"
25+
done
26+
27+
group "CI env"
28+
env
29+
endgroup

.github/workflows/ci.yml

+26-13
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ jobs:
107107
dockerfile: ./ci/linux-debian.Dockerfile
108108
tag: linux-debian-image
109109

110-
- uses: ./.github/actions/print-logs
110+
- name: Print logs
111+
uses: ./.github/actions/print-logs
111112
if: ${{ !cancelled() }}
112113

113114
i686_debian:
@@ -142,7 +143,8 @@ jobs:
142143
dockerfile: ./ci/linux-debian.Dockerfile
143144
tag: linux-debian-image
144145

145-
- uses: ./.github/actions/print-logs
146+
- name: Print logs
147+
uses: ./.github/actions/print-logs
146148
if: ${{ !cancelled() }}
147149

148150
s390x_debian:
@@ -173,7 +175,8 @@ jobs:
173175
dockerfile: ./ci/linux-debian.Dockerfile
174176
tag: linux-debian-image
175177

176-
- uses: ./.github/actions/print-logs
178+
- name: Print logs
179+
uses: ./.github/actions/print-logs
177180
if: ${{ !cancelled() }}
178181

179182

@@ -213,7 +216,8 @@ jobs:
213216
dockerfile: ./ci/linux-debian.Dockerfile
214217
tag: linux-debian-image
215218

216-
- uses: ./.github/actions/print-logs
219+
- name: Print logs
220+
uses: ./.github/actions/print-logs
217221
if: ${{ !cancelled() }}
218222

219223
arm64_debian:
@@ -255,7 +259,8 @@ jobs:
255259
dockerfile: ./ci/linux-debian.Dockerfile
256260
tag: linux-debian-image
257261

258-
- uses: ./.github/actions/print-logs
262+
- name: Print logs
263+
uses: ./.github/actions/print-logs
259264
if: ${{ !cancelled() }}
260265

261266
ppc64le_debian:
@@ -286,7 +291,8 @@ jobs:
286291
dockerfile: ./ci/linux-debian.Dockerfile
287292
tag: linux-debian-image
288293

289-
- uses: ./.github/actions/print-logs
294+
- name: Print logs
295+
uses: ./.github/actions/print-logs
290296
if: ${{ !cancelled() }}
291297

292298

@@ -328,7 +334,8 @@ jobs:
328334
dockerfile: ./ci/linux-debian.Dockerfile
329335
tag: linux-debian-image
330336

331-
- uses: ./.github/actions/print-logs
337+
- name: Print logs
338+
uses: ./.github/actions/print-logs
332339
if: ${{ !cancelled() }}
333340

334341
sanitizers_debian:
@@ -370,7 +377,8 @@ jobs:
370377
dockerfile: ./ci/linux-debian.Dockerfile
371378
tag: linux-debian-image
372379

373-
- uses: ./.github/actions/print-logs
380+
- name: Print logs
381+
uses: ./.github/actions/print-logs
374382
if: ${{ !cancelled() }}
375383

376384
msan_debian:
@@ -419,7 +427,8 @@ jobs:
419427
dockerfile: ./ci/linux-debian.Dockerfile
420428
tag: linux-debian-image
421429

422-
- uses: ./.github/actions/print-logs
430+
- name: Print logs
431+
uses: ./.github/actions/print-logs
423432
if: ${{ !cancelled() }}
424433

425434

@@ -461,7 +470,8 @@ jobs:
461470
dockerfile: ./ci/linux-debian.Dockerfile
462471
tag: linux-debian-image
463472

464-
- uses: ./.github/actions/print-logs
473+
- name: Print logs
474+
uses: ./.github/actions/print-logs
465475
if: ${{ !cancelled() }}
466476

467477
x86_64-macos-native:
@@ -505,7 +515,8 @@ jobs:
505515
env: ${{ matrix.env_vars }}
506516
run: ./ci/ci.sh
507517

508-
- uses: ./.github/actions/print-logs
518+
- name: Print logs
519+
uses: ./.github/actions/print-logs
509520
if: ${{ !cancelled() }}
510521

511522
arm64-macos-native:
@@ -546,7 +557,8 @@ jobs:
546557
env: ${{ matrix.env_vars }}
547558
run: ./ci/ci.sh
548559

549-
- uses: ./.github/actions/print-logs
560+
- name: Print logs
561+
uses: ./.github/actions/print-logs
550562
if: ${{ !cancelled() }}
551563

552564

@@ -637,7 +649,8 @@ jobs:
637649
dockerfile: ./ci/linux-debian.Dockerfile
638650
tag: linux-debian-image
639651

640-
- uses: ./.github/actions/print-logs
652+
- name: Print logs
653+
uses: ./.github/actions/print-logs
641654
if: ${{ !cancelled() }}
642655

643656
cxx_headers_debian:

0 commit comments

Comments
 (0)