Skip to content

Commit

Permalink
js-binding: build mata WASM
Browse files Browse the repository at this point in the history
  • Loading branch information
vhavlena committed Jan 5, 2025
1 parent 44820d7 commit f25ef7a
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/js-binding.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: JS Binding (build-&-test)

on:
push:
branches:
- master
- devel
pull_request:
branches:
- master
- devel
# allows to run the action from GitHub UI
workflow_dispatch:

# defaults:
# run:
# working-directory: src/api/js

env:
EM_VERSION: 3.1.73

permissions:
contents: read # to fetch code (actions/checkout)

jobs:
ubuntu-build:
name: JS Binding Ubuntu
runs-on: ubuntu-latest
steps:

- name: Setup emscripten
uses: mymindstorm/setup-emsdk@v14
with:
no-install: true
version: ${{env.EM_VERSION}}
actions-cache-folder: "emsdk-cache"

- name: Clone Mata
uses: GuillaumeFalourd/clone-github-repo-action@v2.3
with:
owner: 'VeriFIT'
repository: 'mata'
branch: devel
depth: 1

# - name: Install dependencies
# run: |
# sudo apt-get update
# sudo apt-get install catch2

- name: Install Mata
run: |
cd mata
mkdir build && cd build
emcmake cmake -DCMAKE_BUILD_TYPE=Release -DMATA_BUILD_EXAMPLES:BOOL=OFF -DBUILD_TESTING:BOOL=OFF ..
emmake make install

0 comments on commit f25ef7a

Please sign in to comment.