ci: avoid symlinking the build directory on self-hosted builders
This commit is contained in:
parent
4825e12fc9
commit
cb76f82194
@ -12,7 +12,7 @@ source "$(cd "$(dirname "$0")" && pwd)/../shared.sh"
|
||||
if isWindows && isAzurePipelines; then
|
||||
cmd //c "mkdir c:\\MORE_SPACE"
|
||||
cmd //c "mklink /J build c:\\MORE_SPACE"
|
||||
elif isLinux && isGitHubActions; then
|
||||
elif isLinux && isGitHubActions && ! isSelfHostedGitHubActions; then
|
||||
sudo mkdir -p /mnt/more-space
|
||||
sudo chown -R "$(whoami):" /mnt/more-space
|
||||
|
||||
|
@ -38,6 +38,11 @@ function isGitHubActions {
|
||||
[[ "${GITHUB_ACTIONS-false}" = "true" ]]
|
||||
}
|
||||
|
||||
|
||||
function isSelfHostedGitHubActions {
|
||||
[[ "${RUST_GHA_SELF_HOSTED-false}" = "true" ]]
|
||||
}
|
||||
|
||||
function isMacOS {
|
||||
[[ "${OSTYPE}" = "darwin"* ]]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user