-
-
Notifications
You must be signed in to change notification settings - Fork 450
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TEMP: Only run NAPI benchmarks on CI
- Loading branch information
1 parent
8c0da26
commit 3151f6c
Showing
4 changed files
with
39 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* | ||
* Create cache of benchmark profile files. | ||
*/ | ||
|
||
import {join as pathJoin, dirname} from 'path'; | ||
import {fileURLToPath} from 'url'; | ||
import {create as createTar} from 'tar'; | ||
|
||
const __dirname = dirname(fileURLToPath(import.meta.url)); | ||
|
||
const filesDir = process.env.DATA_DIR; | ||
const archivePath = pathJoin(__dirname, 'cachedBenches.tar.gz'); | ||
await createTar({file: archivePath, gzip: true, cwd: filesDir}, ['./']); |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters