Implement temporary MAX_PATH reprieve on CI.
As discussed in #16386, this implements a temporary reprieve for MAX_PATH
limit on the CI.
This works by mapping the cwd
to a new drive letter and then changing the cwd
to this drive letter.
MAX_PATH
is an API
level limit, so by doing this the win32 api
now sees everything relative to this letter.
This thus frees up length(<gitlab checkout dir>)-2
from the MAX_PATH
limit.
The lookup is needed because I assume the same runner can run multiple builds concurrently? Also I assume after_script
is run always, even on unsuccessful builds.