Import code for optical flow in the browser #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################ | |
# This workflow will do a clean install of node dependencies, build the source | |
# code and run tests across different versions of node. | |
# | |
# For more information see: | |
# | |
# https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
# | |
################################################################################ | |
name: Node.js CI | |
# Controls when the action will run. Triggers the workflow on push or pull | |
# request events | |
on: [push, pull_request] | |
# A workflow run is made up of one or more jobs that can run sequentially or in | |
# parallel | |
jobs: | |
# This workflow contains a single job called "build" | |
build: | |
# The type of runner that the job will run on | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- os: ubuntu-20.04 | |
# TODO: Update OpenCV to build on Ubuntu 22.04 | |
# | |
# Current error is: | |
# | |
# [ 96%] Generating ../../bin/opencv.js | |
# TypeError: a bytes-like object is required, not 'str' | |
# | |
#- os: ubuntu-22.04 | |
# Steps represent a sequence of tasks that will be executed as part of the | |
# job | |
steps: | |
- name: Build environment information | |
run: 'echo "Matrix OS: ${{ matrix.os }} on $HOSTNAME with $(getconf _NPROCESSORS_ONLN) cores"' | |
# Check-out the repository under $GITHUB_WORKSPACE, so the job can | |
# access it | |
- name: Checkout main repo | |
uses: actions/checkout@v4 | |
- name: Restore dependency build files | |
id: restore-depends | |
uses: actions/cache@v3 | |
with: | |
path: | | |
src/generated | |
tools/dist | |
key: restore-library-depends-${{ matrix.os }}-${{ hashFiles('tools/depends/ade/*', 'tools/depends/ceres-solver/*', 'tools/depends/eigen/*', 'tools/depends/emscripten/*', 'tools/depends/google-flags/*', 'tools/depends/google-log/*', 'tools/depends/opencv/*') }} | |
- name: Build depends | |
if: steps.restore-depends.outputs.cache-hit != 'true' | |
run: tools/build-depends.sh all | |
- name: Build libraries | |
run: lib/build-ci.sh |