build: use swiftshader on macOS CI (#162568)

This commit is contained in:
Robo 2022-10-03 21:35:58 +09:00 committed by GitHub
parent f74e6923dc
commit 94ec9025ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,6 +49,15 @@ export async function resolveElectronConfiguration(options: LaunchOptions): Prom
args.push('--disable-dev-shm-usage');
}
if (process.platform === 'darwin') {
// On macOS force software based rendering since we are seeing GPU process
// hangs when initializing GL context. This is very likely possible
// that there are new displays available in the CI hardware and
// the relevant drivers couldn't be loaded via the GPU sandbox.
// TODO(deepak1556): remove this switch with Electron update.
args.push('--use-gl=swiftshader');
}
if (remote) {
// Replace workspace path with URI
args[0] = `--${workspacePath.endsWith('.code-workspace') ? 'file' : 'folder'}-uri=vscode-remote://test+test/${URI.file(workspacePath).path}`;