diff --git a/.github/workflows/OCV-Nightly-docs-js.yaml b/.github/workflows/OCV-Nightly-docs-js.yaml index 7934484e..ed428153 100644 --- a/.github/workflows/OCV-Nightly-docs-js.yaml +++ b/.github/workflows/OCV-Nightly-docs-js.yaml @@ -30,7 +30,7 @@ jobs: branch: ['3.4', '4.x', '5.x'] container: image: quay.io/opencv-ci/opencv-docs-js-20.04:20220728 - options: --user ci + options: --user root steps: - name: Define proper HOME path timeout-minutes: 60 @@ -44,7 +44,7 @@ jobs: - name: Clone opencv_contrib timeout-minutes: 60 run: git clone --single-branch --branch ${{ matrix.branch }} https://github.com/opencv/opencv_contrib.git $HOME/opencv_contrib - - name: Build js + - name: Build js (default) timeout-minutes: 60 run: | cd $HOME/build @@ -56,6 +56,23 @@ jobs: cd $HOME/build/js/bin npm install node tests.js + - name: Build js (threads) + timeout-minutes: 60 + run: | + cd $HOME/build + emcmake python ../opencv/platforms/js/build_js.py js_threads --build_wasm --build_test --threads + - name: Run js tests (threads) + timeout-minutes: 60 + if: ${{ always() && matrix.branch == '4.x' }} + run: | + apt-get update + apt-get install -y libx11-xcb1 libxcomposite1 libasound2 libatk1.0-0 libatk-bridge2.0-0 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgbm1 libgcc1 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 + + cd $HOME/build/js_threads/bin + chmod 777 -R . + npm install + npm install --no-save puppeteer@13.7.0 + node run_puppeteer.js - name: Configure OpenCV doxygen timeout-minutes: 60 run: |