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
72 changes: 72 additions & 0 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: Build and Deploy Demo

on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive

- name: Setup Emscripten
uses: mymindstorm/setup-emsdk@v14
with:
version: latest

- name: Verify emcc
run: emcc --version

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22

- name: Install Ninja
run: sudo apt-get update && sudo apt-get install -y ninja-build

- name: Build WASM module
working-directory: wasm-build
run: bash build.sh

- name: Stage demo for Pages
run: |
mkdir -p _site
cp wasm-build/demo.html _site/index.html
cp wasm-build/dasher-wasm-wrapper.js _site/
cp -r wasm-build/wasm _site/wasm
touch _site/.nojekyll

- name: Upload artifact
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v3
with:
path: _site

deploy:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
24 changes: 0 additions & 24 deletions .github/workflows/main.yml

This file was deleted.

61 changes: 0 additions & 61 deletions .github/workflows/test.yml

This file was deleted.

4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[submodule "wasm-build/dashercore-src"]
path = wasm-build/dashercore-src
url = https://github.com/dasher-project/DasherCore.git
branch = feature-CAPI
4 changes: 0 additions & 4 deletions Keyboard/readme.md

This file was deleted.

84 changes: 0 additions & 84 deletions browser/dasher/autoSpeedControl.js

This file was deleted.

Loading
Loading