Skip to content

Commit

Permalink
try adding sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Jan 4, 2025
1 parent 6d0cca1 commit abc5526
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ jobs:
if: startsWith(matrix.config.os, 'windows')
uses: microsoft/setup-msbuild@v2

- name: Add setup Windows SDK
if: startsWith(matrix.config.os, 'windows')
uses: GuillaumeFalourd/setup-windows10-sdk-action@v2

- name: Install dependencies on ubuntu
if: startsWith(matrix.config.name, 'Ubuntu_Latest_GCC')
run: |
Expand All @@ -80,7 +84,7 @@ jobs:
- name: Install dependencies on macos
if: startsWith(matrix.config.os, 'macos')
run: |
brew install cmake
brew install cmake libxrandr-dev libxinerama-dev libxcursor-dev mesa-common-dev libx11-xcb-dev pkg-config nodejs npm
cmake --version
- name: Build
Expand Down
7 changes: 6 additions & 1 deletion test/tests/basic-tests.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import { createRequire } from 'module';
const require = createRequire(import.meta.url);

const { create, globals } = require(`${process.cwd()}/third_party/dawn/out/cmake-release/dawn.node`);
const isWin = process.platform === 'win32';
const dawnNodePath = isWin
? `${process.cwd()}/third_party/dawn/out/cmake-release/gen/node/NapiSymbols.def`.replaceAll('\\', '/')
: `${process.cwd()}/third_party/dawn/out/cmake-release/dawn.node`;

const { create, globals } = require(dawnNodePath);

Object.assign(globalThis, globals);
const navigator = { gpu: create([]) };
Expand Down

0 comments on commit abc5526

Please sign in to comment.