[build] Print binary size stats to CI logs, too

This commit is contained in:
Jason Wray
2018-08-07 18:48:56 -04:00
parent 20d21cb7bc
commit 2dc18d2ada

View File

@@ -51,9 +51,7 @@ function getPriorSize() {
console.log('No matching check found.');
return Promise.resolve(null);
}
const prior = +run.output.summary.match(/`.*` is (\d+) bytes/)[1];
console.log(`Prior size was ${prettyBytes(prior)}.`);
return prior;
return +run.output.summary.match(/`.*` is (\d+) bytes/)[1];
});
}
@@ -71,6 +69,8 @@ github.apps.createInstallationToken({installation_id: SIZE_CHECK_APP_INSTALLATIO
}
})();
console.log(`${label}: ${title} (${size} bytes)`);
return github.checks.create({
owner: 'mapbox',
repo: 'mapbox-gl-native',