Skip to content

Commit cc89a84

Browse files
committed
drop C++20
as of yaito3014/yk_util#62
1 parent bb78e87 commit cc89a84

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
@@ -98,7 +98,7 @@ for (const file of readdirRecursively(".")) {
9898
matrix[osName + osVersion][compilerName][compilerVersion] ??= {};
9999
matrix[osName + osVersion][compilerName][compilerVersion][buildType] ??= [];
100100
matrix[osName + osVersion][compilerName][compilerVersion][buildType][
101-
(parseInt(cppVersion) - 20) / 3
101+
(parseInt(cppVersion) - 23) / 3
102102
] ??= `<a href="${url}">${compileResult}</a>`;
103103

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

0 commit comments

Comments
 (0)