diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e6ec908..4c0dbb4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,6 +10,9 @@ jobs: uses: actions/setup-node@v4 with: node-version: '20.x' + - name: Update Ubuntu and install libjpeg-dev + run: | + sudo apt-get update && sudo apt install libjpeg-dev - name: Build and test WebARKitLib run: | cd tests && mkdir build && cd build && cmake -DEMSCRIPTEN_COMP=0 .. && make && ./webarkit_test @@ -17,7 +20,7 @@ jobs: run: | cd .. ls - docker run -dit --name emscripten-webarkit-testing -v $(pwd):/src emscripten/emsdk:3.1.26 bash + docker run -dit --name emscripten-webarkit-testing -v $(pwd):/src emscripten/emsdk:3.1.38 bash docker exec emscripten-webarkit-testing emcmake cmake -B WebARKitLib/WebARKit/build -S WebARKitLib/WebARKit -DEMSCRIPTEN_COMP=1 .. docker exec emscripten-webarkit-testing emmake make -C WebARKitLib/WebARKit/build \ No newline at end of file diff --git a/WebARKit/CMakeLists.txt b/WebARKit/CMakeLists.txt index a809470..724e5cd 100644 --- a/WebARKit/CMakeLists.txt +++ b/WebARKit/CMakeLists.txt @@ -14,13 +14,13 @@ if(${EMSCRIPTEN_COMP} EQUAL 1) message("Fetching opencv for emscripten compilation from webarkit/opencv-em ...") FetchContent_Declare( build_opencv - URL https://github.com/webarkit/opencv-em/releases/download/0.1.4/opencv-js-4.7.0-emcc-3.1.26.zip + URL https://github.com/webarkit/opencv-em/releases/download/0.1.6/opencv-js-4.10.0-emcc-3.1.38.zip ) else() message("Fetching opencv from webarkit/opencv-em ...") FetchContent_Declare( build_opencv - URL https://github.com/webarkit/opencv-em/releases/download/0.1.4/opencv-4.7.0.zip + URL https://github.com/webarkit/opencv-em/releases/download/0.1.6/opencv-4.10.0.zip ) endif() diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index b053da3..503a7fb 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -19,7 +19,7 @@ set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) FetchContent_Declare( build_opencv - URL https://github.com/webarkit/opencv-em/releases/download/0.1.4/opencv-4.7.0.zip + URL https://github.com/webarkit/opencv-em/releases/download/0.1.6/opencv-4.10.0.zip ) FetchContent_MakeAvailable(googletest build_opencv)