Skip to content

add ES6 module / npm package.json #15

add ES6 module / npm package.json

add ES6 module / npm package.json #15

Workflow file for this run

name: CI
on:
push:
jobs:
build-and-test:
runs-on: ubuntu-22.04
name: Build and test
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: true
- name: build with emscripten
uses: addnab/docker-run-action@v3
with:
image: ghcr.io/antonov548/podofo.js-docker:main
options: --rm -v ${{ github.workspace }}:/src/podofo-js
run: |
set -e
cd podofo-js
emcmake cmake -S. -Bbuild -DOPENSSL_CRYPTO_LIBRARY=/usr/local/libx32/libcrypto.a -DOPENSSL_SSL_LIBRARY=/usr/local/libx32/libssl.a -DOPENSSL_INCLUDE_DIR=/usr/local/include/ -DLIBXML2_LIBRARY=/usr/local/lib/libxml2.a -DLIBXML2_INCLUDE_DIR=/usr/local/include/libxml2/
cmake --build build
cmake --build build --target test