Skip to content

Commit 325d6a5

Browse files
committed
debug: caching and extraction linux
1 parent fcd4ed4 commit 325d6a5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

setup-local/dist/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1245,8 +1245,8 @@ class BinaryControl {
12451245
core.info(`Downloaded Path: ${downloadPath}`);
12461246
const extractedPath = await tc.extractZip(downloadPath, this.binaryFolder);
12471247
core.info(`BrowserStackLocal binary downloaded & extracted successfuly at: ${extractedPath}`);
1248-
// const cachedPath = await tc.cacheDir(extractedPath, LOCAL_BINARY_NAME, '1.0.0');
1249-
// core.addPath(cachedPath);
1248+
const cachedPath = await tc.cacheDir(extractedPath, LOCAL_BINARY_NAME, '1.0.0');
1249+
core.addPath(cachedPath);
12501250
} catch (e) {
12511251
throw Error(`BrowserStackLocal binary could not be downloaded due to ${e.message}`);
12521252
}

setup-local/src/binaryControl.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ class BinaryControl {
180180
core.info(`Downloaded Path: ${downloadPath}`);
181181
const extractedPath = await tc.extractZip(downloadPath, this.binaryFolder);
182182
core.info(`BrowserStackLocal binary downloaded & extracted successfuly at: ${extractedPath}`);
183-
// const cachedPath = await tc.cacheDir(extractedPath, LOCAL_BINARY_NAME, '1.0.0');
184-
// core.addPath(cachedPath);
183+
const cachedPath = await tc.cacheDir(extractedPath, LOCAL_BINARY_NAME, '1.0.0');
184+
core.addPath(cachedPath);
185185
} catch (e) {
186186
throw Error(`BrowserStackLocal binary could not be downloaded due to ${e.message}`);
187187
}

0 commit comments

Comments
 (0)