Skip to content
This repository was archived by the owner on Aug 14, 2020. It is now read-only.

Commit 67ccb3d

Browse files
author
Ignacio Bonafonte
committed
Fix upload symbols was broken for Scope agent version 0.5.4 and up
1 parent 2b360f7 commit 67ccb3d

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

dist/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1224,6 +1224,8 @@ async function swiftPackageRun(extraParameters, codePathEnabled, agentVersion) {
12241224
env: {
12251225
...envVars,
12261226
TARGET_BUILD_DIR:
1227+
process.env["GITHUB_WORKSPACE"] + "/.build/x86_64-apple-macosx/debug",
1228+
CONFIGURATION_BUILD_DIR:
12271229
process.env["GITHUB_WORKSPACE"] + "/.build/x86_64-apple-macosx/debug"
12281230
},
12291231
ignoreReturnCode: true
@@ -1434,7 +1436,8 @@ function uploadSymbols(projectParameter, scheme, dsn, scopeFrameworkToolsPath) {
14341436
exec.exec(runScriptCommand, null, {
14351437
env: {
14361438
...envVars,
1437-
TARGET_BUILD_DIR: xctestDir
1439+
TARGET_BUILD_DIR: xctestDir,
1440+
CONFIGURATION_BUILD_DIR: xctestDir
14381441
},
14391442
ignoreReturnCode: true
14401443
});

index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,8 @@ async function swiftPackageRun(extraParameters, codePathEnabled, agentVersion) {
283283
env: {
284284
...envVars,
285285
TARGET_BUILD_DIR:
286+
process.env["GITHUB_WORKSPACE"] + "/.build/x86_64-apple-macosx/debug",
287+
CONFIGURATION_BUILD_DIR:
286288
process.env["GITHUB_WORKSPACE"] + "/.build/x86_64-apple-macosx/debug"
287289
},
288290
ignoreReturnCode: true
@@ -493,7 +495,8 @@ function uploadSymbols(projectParameter, scheme, dsn, scopeFrameworkToolsPath) {
493495
exec.exec(runScriptCommand, null, {
494496
env: {
495497
...envVars,
496-
TARGET_BUILD_DIR: xctestDir
498+
TARGET_BUILD_DIR: xctestDir,
499+
CONFIGURATION_BUILD_DIR: xctestDir
497500
},
498501
ignoreReturnCode: true
499502
});

0 commit comments

Comments
 (0)