add disable_annotations options to disable stats report (#162)

This commit is contained in:
Trim21
2024-11-27 21:16:18 +08:00
committed by GitHub
parent c83ccfeb86
commit 25839b6484
5 changed files with 44 additions and 1 deletions

View File

@@ -29,6 +29,12 @@ async function get_output(command: string, args: string[]): Promise<string> {
}
async function show_stats() {
const disable_annotations = core.getBooleanInput('disable_annotations');
if (disable_annotations) {
core.debug('annotations generation disabled');
return;
}
core.debug('start sccache show starts');
const human_stats = await core.group('Get human-readable stats', async () => {
return get_output(`${process.env.SCCACHE_PATH}`, ['--show-stats']);