Skip to content

Commit 893d4b4

Browse files
authored
drop C++20 (#10)
as of yaito3014/yk_util#62
1 parent c462c66 commit 893d4b4

3 files changed

Lines changed: 5 additions & 7 deletions

File tree

dist/index.js

Lines changed: 2 additions & 3 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: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ for (const file of readdirRecursively(".")) {
9797
matrix[osName + osVersion][compilerName][compilerVersion] ??= {};
9898
matrix[osName + osVersion][compilerName][compilerVersion][buildType] ??= [];
9999
matrix[osName + osVersion][compilerName][compilerVersion][buildType][
100-
(parseInt(cppVersion) - 20) / 3
100+
(parseInt(cppVersion) - 23) / 3
101101
] ??= `<a href="${url}">${compileResult}</a>`;
102102

103103
// const appendString = `1. [${job.name}](<${url}>)\n`;
@@ -119,7 +119,6 @@ function generateTable(data: NestedData): string {
119119
<table>
120120
<thead>
121121
<th colspan=4>Environment</th>
122-
<th>C++20</th>
123122
<th>C++23</th>
124123
<th>C++26</th>
125124
</thead>
@@ -144,7 +143,7 @@ function generateRows(data: NestedData): string {
144143
for (const [key, val] of Object.entries(obj).toSorted()) {
145144
if (Array.isArray(val)) {
146145
body += `<th>${key}</th>`;
147-
for (let i = 0; i < 3; ++i) {
146+
for (let i = 0; i < 2; ++i) {
148147
if (val[i]) body += `<td>${val[i]}</td>`;
149148
else body += `<td></td>`;
150149
}

0 commit comments

Comments
 (0)