Skip to content

Commit ba97ad3

Browse files
committed
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.
1 parent 11aafa5 commit ba97ad3

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,13 @@ if isWindows && isAzurePipelines; then
1515
elif isLinux && isGitHubActions; then
1616
sudo mkdir -p /mnt/more-space
1717
sudo chown -R "$(whoami):" /mnt/more-space
18-
ln -s /mnt/more-space obj
18+
19+
# Switch the whole workspace to the /mnt partition, which has more space.
20+
# We don't just symlink the `obj` directory as doing that creates problems
21+
# with the docker container.
22+
current_dir="$(readlink -f "$(pwd)")"
23+
cd /tmp
24+
mv "${current_dir}" /mnt/more-space/workspace
25+
ln -s /mnt/more-space/workspace "${current_dir}"
26+
cd "${current_dir}"
1927
fi

0 commit comments

Comments
 (0)