Skip to content

Commit

Permalink
fixup! Import initial engine in C++ compiled to WASM
Browse files Browse the repository at this point in the history
  • Loading branch information
juztamau5 committed Mar 11, 2024
1 parent 13e43ab commit 3730136
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
uses: actions/cache@v4
with:
path: |
tools/install
src/frontend/public/wasm
key: cache-wasm-${{ matrix.os }}-${{ matrix.node-version }}-${{ hashFiles('src/engine/**', 'tools/build-wasm.sh', 'tools/download-emscripten.sh') }}

- name: Setup Node.js ${{ matrix.node-version }}
Expand Down
3 changes: 3 additions & 0 deletions src/frontend/.eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
/dist
/node_modules
/pnpm-lock.yaml

# Generated WASM libraries
/public/wasm
3 changes: 3 additions & 0 deletions src/frontend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
/dist
/node_modules
/yarn-*.log*

# Generated WASM libraries
/public/wasm
3 changes: 3 additions & 0 deletions src/frontend/.prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
/dist
/node_modules
/pnpm-lock.yaml

# Generated WASM libraries
/public/wasm
3 changes: 3 additions & 0 deletions tools/build-wasm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,6 @@ emcmake cmake \
cmake \
--build "${BUILD_DIRECTORY}" \
--target install

# Copy the generated libraries to the public directory
cp -rv "${INSTALL_DIRECTORY}/wasm" "${PROJECT_DIRECTORY}/src/frontend/public"

0 comments on commit 3730136

Please sign in to comment.