Skip to content

Commit eff8040

Browse files
committed
insert empty td
1 parent 2478e4d commit eff8040

3 files changed

Lines changed: 19 additions & 15 deletions

File tree

dist/index.js

Lines changed: 10 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,18 +87,18 @@ for (const file of readdirRecursively(".")) {
8787
const buildType = info[2];
8888
const cppVersion = info[3];
8989
// const boostVersion = info[4];
90-
const compilerVendor = info[5];
90+
const compilerName = info[5];
9191
const compilerVersion = info[6];
9292
// const compilerExecutable = info[7];
9393

9494
const url = `https://github.com/${owner}/${repo}/actions/runs/${runId}/job/${jobId}#step:${stepId}:1`;
9595

9696
matrix[osName] ??= {};
9797
matrix[osName][osVersion] ??= {};
98-
matrix[osName][osVersion][compilerVendor] ??= {};
99-
matrix[osName][osVersion][compilerVendor][compilerVersion] ??= {};
100-
matrix[osName][osVersion][compilerVendor][compilerVersion][buildType] ??= [];
101-
matrix[osName][osVersion][compilerVendor][compilerVersion][buildType][
98+
matrix[osName][osVersion][compilerName] ??= {};
99+
matrix[osName][osVersion][compilerName][compilerVersion] ??= {};
100+
matrix[osName][osVersion][compilerName][compilerVersion][buildType] ??= [];
101+
matrix[osName][osVersion][compilerName][compilerVersion][buildType][
102102
(parseInt(cppVersion) - 20) / 3
103103
] ??= `<a href="${url}">${compileResult}</a>`;
104104

@@ -146,8 +146,9 @@ function generateRows(data: NestedData): string {
146146
for (const [key, val] of Object.entries(obj)) {
147147
if (Array.isArray(val)) {
148148
body += `<th>${key}</th>`;
149-
for (const elem of val) {
150-
body += `<td>${elem}</td>`;
149+
for (let i = 0; i < 3; ++i) {
150+
if (val[i]) body += `<td>${val[i]}</td>`;
151+
else body += `<td></td>`;
151152
}
152153
body += "</tr><tr>";
153154
} else {

0 commit comments

Comments
 (0)