CI working path under Apple silicon (M1) runners is different from x86-64 and other OS
On the macOS x86 runners, my working path was /Users/gitlab/builds/freeelectron_org/fe/.git/
for both build.macos and test:macos. With the m1, I'm getting different paths, build and test, such as /Users/gitlab/builds/yixBWUVo/0/freeelectron_org/fe/.git/
and /Users/gitlab/builds/tCo7q1eW/0/freeelectron_org/fe/.git/
. The results in a failure to find libs:
dyld[813]: Library not loaded: '/Users/gitlab/builds/yixBWUVo/0/freeelectron_org/fe/lib/arm64_osx_debug/libfePlatform.dylib'
Referenced from: '/Users/gitlab/builds/tCo7q1eW/0/freeelectron_org/fe/lib/arm64_osx_debug/xDL_Loader.exe'
Reason: tried: '/Users/gitlab/builds/yixBWUVo/0/freeelectron_org/fe/lib/arm64_osx_debug/libfePlatform.dylib' (no such file), '/usr/local/lib/libfePlatform.dylib' (no such file), '/usr/lib/libfePlatform.dylib' (no such file)
Windows is C:/GitLab-Runner/builds/freeelectron_org/fe/.git/
and Linux is /builds/freeelectron_org/fe/.git/
.
Ways to reproduce
Run any job on the with tag saas-macos-medium-m1
. The build directory will include the job ID.
Edited by Gabriel Engel