mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-21 04:03:11 +00:00
ci: fix out of disk space errors on linux GHA
The /mnt mount point has 53GB of free disk space at the time of writing this commit, so this moves the build there to avoid running out of disk space during builds.
This commit is contained in:
parent
b9c3633847
commit
1ba762a193
@ -1,8 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# We've had issues with the default drive in use running out of space during a
|
# We've had multiple issues with the default disk running out of disk space
|
||||||
# build, and it looks like the `C:` drive has more space than the default `D:`
|
# during builds, and it looks like other disks mounted in the VMs have more
|
||||||
# drive. We should probably confirm this with the azure pipelines team at some
|
# space available. This script synlinks the build directory to those other
|
||||||
# point, but this seems to fix our "disk space full" problems.
|
# disks, in the CI providers and OSes affected by this.
|
||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
IFS=$'\n\t'
|
IFS=$'\n\t'
|
||||||
@ -12,4 +12,8 @@ source "$(cd "$(dirname "$0")" && pwd)/../shared.sh"
|
|||||||
if isWindows && isAzurePipelines; then
|
if isWindows && isAzurePipelines; then
|
||||||
cmd //c "mkdir c:\\MORE_SPACE"
|
cmd //c "mkdir c:\\MORE_SPACE"
|
||||||
cmd //c "mklink /J build c:\\MORE_SPACE"
|
cmd //c "mklink /J build c:\\MORE_SPACE"
|
||||||
|
elif isLinux && isGitHubActions; then
|
||||||
|
sudo mkdir -p /mnt/more-space
|
||||||
|
sudo chown -R "$(whoami):" /mnt/more-space
|
||||||
|
ln -s /mnt/more-space obj
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user