Skip to content

Commit

Permalink
ci: move the whole workspace directory on gha/linux
Browse files Browse the repository at this point in the history
Moving just the `obj` directory created problems with mountpoints and
Docker containers, so this tries to symlink the parent directory.
  • Loading branch information
pietroalbini committed Mar 24, 2020
1 parent 11aafa5 commit ba97ad3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/ci/scripts/symlink-build-dir.sh
Expand Up @@ -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

0 comments on commit ba97ad3

Please sign in to comment.