Skip to content

Commit

Permalink
Creates wasm / emscripten ci
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumeblanc committed Feb 15, 2024
1 parent 0f1e2e2 commit 4487208
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/wasm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: wasm
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: emscripten-core/emsdk
- name: Build
run:
./build-utils/em-build.sh

17 changes: 17 additions & 0 deletions build-utils/em-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

# Setup emscripten
cd emsdk
./emsdk install latest
./emsdk activate latest
source ./emsdk_env.sh
cd ../..


# Setup cmake
mkdir build-wasm
cd build-wasm
emcmake cmake -DCMAKE_BUILD_TYPE=Release ..

# Build
cmake --build .

0 comments on commit 4487208

Please sign in to comment.