-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (23 loc) · 870 Bytes
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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/ -DPODOFO_BUILD_STATIC=ON
cmake --build build
cmake --build build --target test