From 03d256cbfe024fd167a80abe6914c68742862a60 Mon Sep 17 00:00:00 2001 From: Guillaume Blanc Date: Thu, 15 Feb 2024 18:21:42 +0100 Subject: [PATCH] Creates wasm / emscripten ci --- .github/workflows/wasm.yml | 16 ++++++++++++++++ build-utils/em-build.sh | 17 +++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 .github/workflows/wasm.yml create mode 100644 build-utils/em-build.sh diff --git a/.github/workflows/wasm.yml b/.github/workflows/wasm.yml new file mode 100644 index 000000000..8cacc24a2 --- /dev/null +++ b/.github/workflows/wasm.yml @@ -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: | + ls + ./build-utils/em-build.sh diff --git a/build-utils/em-build.sh b/build-utils/em-build.sh new file mode 100644 index 000000000..22eb3d19b --- /dev/null +++ b/build-utils/em-build.sh @@ -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 .