From 656823ea4987e3e100817457e09cd094cb46f517 Mon Sep 17 00:00:00 2001 From: kalwalt Date: Mon, 23 Oct 2023 20:19:54 +0200 Subject: [PATCH] build the WebARKitLib with Emscripten --- .github/workflows/test.yml | 7 ++++++- WebARKit/CMakeLists.txt | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d5c8d25..335e1e8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,4 +12,9 @@ jobs: node-version: '16.x' - name: Build and test WebARKitLib run: | - cd tests && mkdir build && cd build && cmake .. && make && ./webarkit_test \ No newline at end of file + cd tests && mkdir build && cd build && cmake .. && make && ./webarkit_test + - name: Build WebARKitLib with Emscripten (Docker) + run: docker run -dit --name emscripten-webarkit-testing -v $(pwd):/src emscripten/emsdk:3.1.26 bash + run: docker exec emscripten-webarkit-testing emcmake cmake -B emscripten/WebARKitLib/WebARKit/build -Semscripten/WebARKitLib/WebARKit -DEMSCRIPTEN_COMP=1 .. + run: docker exec emscripten-webarkit-testing emmake make -C emscripten/WebARKitLib/WebARKit/build + \ No newline at end of file diff --git a/WebARKit/CMakeLists.txt b/WebARKit/CMakeLists.txt index 105e719..3fe9817 100644 --- a/WebARKit/CMakeLists.txt +++ b/WebARKit/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.20) +cmake_minimum_required(VERSION 3.16) project(WebARKitLib)