-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump dependencies and add web demo (#14)
* Bump various dependency versions * Deduplicate dependencies * Fix errors * Update CI workflow Includes WASM module and web build step for more complete testing. * Add GitHub Actions workflow for web demo CD
- Loading branch information
1 parent
cd97386
commit 1900caa
Showing
5 changed files
with
1,162 additions
and
1,601 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Deploy web demo | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Install dependencies (apt) | ||
run: | | ||
sudo apt-get update && \ | ||
sudo apt-get install -y --no-install-recommends \ | ||
libxi-dev libgl1-mesa-dev | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: yarn | ||
cache-dependency-path: ./devices/wasm/web/yarn.lock | ||
- name: Setup Emscripten | ||
uses: mymindstorm/setup-emsdk@v14 | ||
- name: Install dependencies | ||
working-directory: devices/wasm/web | ||
run: yarn install --frozen-lockfile | ||
- name: Build WASM module | ||
working-directory: devices/wasm | ||
run: | | ||
mkdir -p build | ||
cd build | ||
emcmake cmake ../wasm | ||
make -j$(nproc) | ||
- name: Build | ||
working-directory: devices/wasm/web | ||
run: yarn build | ||
- name: Deploy to GitHub Pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: devices/wasm/web/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.