mirror of
https://github.com/rust-lang/rust
synced 2024-09-15 22:50:55 +00:00
ci: move the whole workspace directory on gha/linux
Moving just the `obj` directory created problems with mountpoints and Docker containers, so this tries to symlink the parent directory.
This commit is contained in:
parent
11aafa5305
commit
ba97ad3509
|
@ -15,5 +15,13 @@ if isWindows && isAzurePipelines; then
|
|||
elif isLinux && isGitHubActions; then
|
||||
sudo mkdir -p /mnt/more-space
|
||||
sudo chown -R "$(whoami):" /mnt/more-space
|
||||
ln -s /mnt/more-space obj
|
||||
|
||||
# Switch the whole workspace to the /mnt partition, which has more space.
|
||||
# We don't just symlink the `obj` directory as doing that creates problems
|
||||
# with the docker container.
|
||||
current_dir="$(readlink -f "$(pwd)")"
|
||||
cd /tmp
|
||||
mv "${current_dir}" /mnt/more-space/workspace
|
||||
ln -s /mnt/more-space/workspace "${current_dir}"
|
||||
cd "${current_dir}"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue