mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 12:19:15 +00:00
13 lines
357 B
JavaScript
13 lines
357 B
JavaScript
/*
|
|
* Create temp dir for downloading artefacts to.
|
|
*/
|
|
|
|
import fs from 'fs';
|
|
|
|
// Create directory for saving assets
|
|
const rand = Math.round(Math.random() * 1000000000000000000).toString(16),
|
|
dataDir = `/tmp/oxc_bench_data_${rand}`;
|
|
fs.mkdirSync(dataDir);
|
|
|
|
// Output dir path to env var
|
|
fs.appendFileSync(process.env.GITHUB_ENV, `DATA_DIR=${dataDir}\n`);
|