Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
if: startsWith(matrix.config.name, 'Ubuntu')
run: |
sudo apt-get update
sudo apt-get install cmake libxrandr-dev libxinerama-dev libxcursor-dev mesa-common-dev libx11-xcb-dev pkg-config nodejs npm
sudo apt-get install cmake libxrandr-dev libxinerama-dev libxcursor-dev mesa-common-dev libx11-xcb-dev pkg-config nodejs npm mesa-vulkan-drivers libvulkan1
cmake --version
gcc --version

Expand Down
1 change: 1 addition & 0 deletions build/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ export const kConfig = process.env.CMAKE_BUILD_TYPE ?? 'Release';

export const isMac = process.platform === 'darwin';
export const isWin = process.platform === 'win32';
export const isLinux = process.platform === 'linux';
6 changes: 2 additions & 4 deletions test/functional-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,5 @@ Promise.withResolvers = Promise.withResolvers ?? function() {
return o;
};

if (isWin || isMac) {
await import('./tests/basic-tests.js');
//await import('./tests/reference-count-tests.js');
}
await import('./tests/basic-tests.js');
//await import('./tests/reference-count-tests.js');
3 changes: 2 additions & 1 deletion test/webgpu.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { create, globals } from '../index.js';
import { isWin } from '../build/constants.js';
import { isWin, isLinux } from '../build/constants.js';
import { addElemIf } from '../build/utils.js';

export function getGPU() {
const options = [];
if (!!process.env.WEBGPU_USE_CI_AVAILABLE_RENDERER) {
options.push(...addElemIf(isWin, 'adapter=Microsoft'));
options.push(...addElemIf(isLinux, 'adapter=llvmpipe'));
}
return { gpu: create(options), globals };
}
Expand Down
Loading