Skip to content

Commit cb76f82

Browse files
committed
ci: avoid symlinking the build directory on self-hosted builders
1 parent 4825e12 commit cb76f82

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/ci/scripts/symlink-build-dir.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ source "$(cd "$(dirname "$0")" && pwd)/../shared.sh"
1212
if isWindows && isAzurePipelines; then
1313
cmd //c "mkdir c:\\MORE_SPACE"
1414
cmd //c "mklink /J build c:\\MORE_SPACE"
15-
elif isLinux && isGitHubActions; then
15+
elif isLinux && isGitHubActions && ! isSelfHostedGitHubActions; then
1616
sudo mkdir -p /mnt/more-space
1717
sudo chown -R "$(whoami):" /mnt/more-space
1818

src/ci/shared.sh

+5
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ function isGitHubActions {
3838
[[ "${GITHUB_ACTIONS-false}" = "true" ]]
3939
}
4040

41+
42+
function isSelfHostedGitHubActions {
43+
[[ "${RUST_GHA_SELF_HOSTED-false}" = "true" ]]
44+
}
45+
4146
function isMacOS {
4247
[[ "${OSTYPE}" = "darwin"* ]]
4348
}

0 commit comments

Comments
 (0)