Skip to content

[fix] add missing liboprf to tests/opaque-tv1 as link dependency in m… #196

[fix] add missing liboprf to tests/opaque-tv1 as link dependency in m…

[fix] add missing liboprf to tests/opaque-tv1 as link dependency in m… #196

Workflow file for this run

name: "Build and test JavaScript bindings"
on:
push:
branches: [master]
pull_request:
# The branches below must be a subset of the branches above
branches: [master]
jobs:
build:
name: Build and test JavaScript bindings
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- run: |
sudo apt update
sudo apt install -y libsodium-dev nodejs pkgconf python3-pip uncrustify # build-essential git
# liboprf
git clone https://github.com/stef/liboprf/
cd js
git clone https://github.com/emscripten-core/emsdk.git # https://emscripten.org/docs/getting_started/downloads.html
cd emsdk
./emsdk install 1.40.1
./emsdk activate 1.40.1
source ./emsdk_env.sh
cd ..
ln -s ../liboprf/src ../src/oprf
make LIBOPRFHOME=../liboprf/src
echo emsdk >.prettierignore
echo libsodium.js >>.prettierignore
make LIBOPRFHOME=../liboprf/src format es-check test