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

Commit

Permalink
Fix upload symbols was broken for Scope agent version 0.5.4 and up
Browse files Browse the repository at this point in the history
  • Loading branch information
Ignacio Bonafonte committed Mar 9, 2020
1 parent 2b360f7 commit 67ccb3d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1224,6 +1224,8 @@ async function swiftPackageRun(extraParameters, codePathEnabled, agentVersion) {
env: {
...envVars,
TARGET_BUILD_DIR:
process.env["GITHUB_WORKSPACE"] + "/.build/x86_64-apple-macosx/debug",
CONFIGURATION_BUILD_DIR:
process.env["GITHUB_WORKSPACE"] + "/.build/x86_64-apple-macosx/debug"
},
ignoreReturnCode: true
Expand Down Expand Up @@ -1434,7 +1436,8 @@ function uploadSymbols(projectParameter, scheme, dsn, scopeFrameworkToolsPath) {
exec.exec(runScriptCommand, null, {
env: {
...envVars,
TARGET_BUILD_DIR: xctestDir
TARGET_BUILD_DIR: xctestDir,
CONFIGURATION_BUILD_DIR: xctestDir
},
ignoreReturnCode: true
});
Expand Down
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,8 @@ async function swiftPackageRun(extraParameters, codePathEnabled, agentVersion) {
env: {
...envVars,
TARGET_BUILD_DIR:
process.env["GITHUB_WORKSPACE"] + "/.build/x86_64-apple-macosx/debug",
CONFIGURATION_BUILD_DIR:
process.env["GITHUB_WORKSPACE"] + "/.build/x86_64-apple-macosx/debug"
},
ignoreReturnCode: true
Expand Down Expand Up @@ -493,7 +495,8 @@ function uploadSymbols(projectParameter, scheme, dsn, scopeFrameworkToolsPath) {
exec.exec(runScriptCommand, null, {
env: {
...envVars,
TARGET_BUILD_DIR: xctestDir
TARGET_BUILD_DIR: xctestDir,
CONFIGURATION_BUILD_DIR: xctestDir
},
ignoreReturnCode: true
});
Expand Down

0 comments on commit 67ccb3d

Please sign in to comment.