Skip to content

Commit e3c8a4f

Browse files
authored
Merge pull request #147 from dasher-project/wasm-dashercore
Replace JS demo with WASM DasherCore build
2 parents caefd87 + 91aa722 commit e3c8a4f

129 files changed

Lines changed: 139112 additions & 40428 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build-deploy.yml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: Build and Deploy Demo
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: read
12+
pages: write
13+
id-token: write
14+
15+
concurrency:
16+
group: "pages"
17+
cancel-in-progress: true
18+
19+
jobs:
20+
build:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v4
25+
with:
26+
submodules: recursive
27+
28+
- name: Setup Emscripten
29+
uses: mymindstorm/setup-emsdk@v14
30+
with:
31+
version: latest
32+
33+
- name: Verify emcc
34+
run: emcc --version
35+
36+
- name: Setup Node.js
37+
uses: actions/setup-node@v4
38+
with:
39+
node-version: 22
40+
41+
- name: Install Ninja
42+
run: sudo apt-get update && sudo apt-get install -y ninja-build
43+
44+
- name: Build WASM module
45+
working-directory: wasm-build
46+
run: bash build.sh
47+
48+
- name: Stage demo for Pages
49+
run: |
50+
mkdir -p _site
51+
cp wasm-build/demo.html _site/index.html
52+
cp wasm-build/dasher-wasm-wrapper.js _site/
53+
cp -r wasm-build/wasm _site/wasm
54+
touch _site/.nojekyll
55+
56+
- name: Upload artifact
57+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
58+
uses: actions/upload-pages-artifact@v3
59+
with:
60+
path: _site
61+
62+
deploy:
63+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
64+
needs: build
65+
runs-on: ubuntu-latest
66+
environment:
67+
name: github-pages
68+
url: ${{ steps.deployment.outputs.page_url }}
69+
steps:
70+
- name: Deploy to GitHub Pages
71+
id: deployment
72+
uses: actions/deploy-pages@v4

.github/workflows/main.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 0 additions & 61 deletions
This file was deleted.

.gitmodules

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[submodule "wasm-build/dashercore-src"]
2+
path = wasm-build/dashercore-src
3+
url = https://github.com/dasher-project/DasherCore.git
4+
branch = feature-CAPI

Keyboard/readme.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

browser/dasher/autoSpeedControl.js

Lines changed: 0 additions & 84 deletions
This file was deleted.

0 commit comments

Comments
 (0)