diff options
| author | Pietro Albini <pietro@pietroalbini.org> | 2019-12-16 12:38:43 +0100 |
|---|---|---|
| committer | Pietro Albini <pietro@pietroalbini.org> | 2020-03-24 15:36:09 +0100 |
| commit | b9c3633847cd74f514ebb3197876e8181a003f10 (patch) | |
| tree | 7495f96359eccd607421cf1564e52a0d0ebf7985 /src/ci/scripts | |
| parent | 9beb8f54774ca0d41dd2eb7622809f4073676757 (diff) | |
| download | rust-b9c3633847cd74f514ebb3197876e8181a003f10.tar.gz rust-b9c3633847cd74f514ebb3197876e8181a003f10.zip | |
ci: don't move the build to C: on GitHub Actions
On Azure Pipeliones, the C: filesystem is huge with a lot of free space,
while D: is small. By default builds happened in D:, so we added a
script to symlink the big directories to C:, granting us more space.
Filesystem Size Used Avail Use%
C: 256G 143G 114G 56%
D: 14G 2.0G 13G 15%
On GitHub Actions instead C: is almost full, and we have a lot of free
space on D:, where the build happens.
Filesystem Size Used Avail Use%
C: 128G 114G 15G 89%
D: 56G 4.8G 52G 9%
This commit stops creating the symlink on GitHub Actions, fixing the out
of disk space errors we were seeing on some Windows builders.
Diffstat (limited to 'src/ci/scripts')
| -rwxr-xr-x | src/ci/scripts/symlink-build-dir.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ci/scripts/symlink-build-dir.sh b/src/ci/scripts/symlink-build-dir.sh index e57128c70f5..904fd3b60f8 100755 --- a/src/ci/scripts/symlink-build-dir.sh +++ b/src/ci/scripts/symlink-build-dir.sh @@ -9,7 +9,7 @@ IFS=$'\n\t' source "$(cd "$(dirname "$0")" && pwd)/../shared.sh" -if isWindows; then +if isWindows && isAzurePipelines; then cmd //c "mkdir c:\\MORE_SPACE" cmd //c "mklink /J build c:\\MORE_SPACE" fi |
