Compare commits

...
Sign in to create a new pull request.

2 commits

Author SHA1 Message Date
Alex Rodionov
f3a756b8e0 Merge remote-tracking branch 'origin/main' into faillback-to-c 2025-05-27 08:10:00 -07:00
Alex Rodionov
5e310f9e02 Co-locate Bazel output base with workspace
Fixes #81
2025-05-15 14:35:35 -07:00
5 changed files with 20 additions and 5 deletions

View file

@ -16,7 +16,12 @@ const platform = os.platform()
let bazelOutputBase = core.getInput('output-base')
if (!bazelOutputBase) {
if (platform === 'win32') {
bazelOutputBase = 'D:/_bazel'
// check if GITHUB_WORKSPACE starts with D:
if (process.env.GITHUB_WORKSPACE?.toLowerCase()?.startsWith('d:')) {
bazelOutputBase = 'D:/_bazel'
} else {
bazelOutputBase = `C:/_bazel`
}
} else {
bazelOutputBase = `${homeDir}/.bazel`
}

7
dist/main/index.js vendored
View file

@ -22,7 +22,12 @@ const platform = os.platform()
let bazelOutputBase = core.getInput('output-base')
if (!bazelOutputBase) {
if (platform === 'win32') {
bazelOutputBase = 'D:/_bazel'
// check if GITHUB_WORKSPACE starts with D:
if (process.env.GITHUB_WORKSPACE?.toLowerCase()?.startsWith('d:')) {
bazelOutputBase = 'D:/_bazel'
} else {
bazelOutputBase = `C:/_bazel`
}
} else {
bazelOutputBase = `${homeDir}/.bazel`
}

File diff suppressed because one or more lines are too long

7
dist/post/index.js vendored
View file

@ -22,7 +22,12 @@ const platform = os.platform()
let bazelOutputBase = core.getInput('output-base')
if (!bazelOutputBase) {
if (platform === 'win32') {
bazelOutputBase = 'D:/_bazel'
// check if GITHUB_WORKSPACE starts with D:
if (process.env.GITHUB_WORKSPACE?.toLowerCase()?.startsWith('d:')) {
bazelOutputBase = 'D:/_bazel'
} else {
bazelOutputBase = `C:/_bazel`
}
} else {
bazelOutputBase = `${homeDir}/.bazel`
}

File diff suppressed because one or more lines are too long