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
31 changes: 18 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,24 @@ jobs:
- name: Typecheck files
run: yarn tsc

# test:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v3

# - name: Setup
# uses: ./.github/actions/setup
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}

# - name: Run unit tests
# run: yarn test --maxWorkers=2 --coverage
test:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup
uses: ./.github/actions/setup
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Codegen
working-directory: packages/webgpu
run: yarn codegen

- name: Run unit tests
working-directory: packages/webgpu
run: yarn test:ref

build-library:
runs-on: ubuntu-latest
Expand Down
3 changes: 2 additions & 1 deletion packages/webgpu/android/cpp/AndroidPlatformContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ class AndroidPlatformContext : public PlatformContext {
jobject _blobModule;

public:
explicit AndroidPlatformContext(jobject blobModule) : _blobModule(blobModule) {}
explicit AndroidPlatformContext(jobject blobModule)
: _blobModule(blobModule) {}
~AndroidPlatformContext() {
if (_blobModule) {
JNIEnv *env = facebook::jni::Environment::current();
Expand Down
2 changes: 1 addition & 1 deletion packages/webgpu/cpp/rnwgpu/api/GPUBuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,4 @@ class GPUBuffer : public m::HybridObject {
std::vector<Mapping> mappings;
};

} // namespace rnwgpu
} // namespace rnwgpu
2 changes: 1 addition & 1 deletion packages/webgpu/scripts/codegen/codegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { getDescriptor } from "./Descriptors";
const tsConfigFilePath = path.resolve(__dirname, "../../tsconfig.json");
const filePath = path.resolve(
__dirname,
"../../node_modules/@webgpu/types/dist/index.d.ts",
"../../../../node_modules/@webgpu/types/dist/index.d.ts",
);
const project = new Project({
tsConfigFilePath,
Expand Down
Loading