Skip to content

Commit 6b00e45

Browse files
committed
use swiftshader ONLY for github actions tests
1 parent 7656266 commit 6b00e45

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/jasmine/karma.conf.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,10 @@ func.defaultConfig = {
261261
'--touch-events',
262262
'--window-size=' + argv.width + ',' + argv.height,
263263
isCI ? '--ignore-gpu-blocklist' : '',
264-
isCI ? '--use-gl=angle' : '',
265-
isCI ? '--use-angle=swiftshader' : '',
264+
// The following two flags are needed only for the "NoCI" tests which run in GitHub Actions,
265+
// since the GPU is not available to those runners and therefore we need to use SwiftShader instead.
266+
isCI && process.env.GITHUB_ACTIONS ? '--use-gl=angle' : '',
267+
isCI && process.env.GITHUB_ACTIONS ? '--use-angle=swiftshader' : '',
266268
isCI ? '--no-sandbox' : '',
267269
isBundleTest && basename(testFileGlob) === 'no_webgl' ? '--disable-webgl' : ''
268270
]

0 commit comments

Comments
 (0)