-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (30 loc) · 1003 Bytes
/
emscripten.yml
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
29
30
31
32
33
34
name: Emscripten
# Run this workflow every time a new commit pushed to your repository
on: push
jobs:
# Set the job key. The key is displayed as the job name
# when a job name is not provided
test-build:
# Name the Job
name: Test build
# Set the type of machine to run on
runs-on: ubuntu-20.04
steps:
# Checks out a copy of your repository on the ubuntu-latest machine
- name: Checkout code
uses: actions/checkout@v2
- name: Setup C++ environment
uses: kurocha/setup-cpp@v1
- name: Update recursive
run: git submodule update --recursive --init
- name: Build build-system
run: make -C matmake2
- name: Install emscripten
run: |
git clone https://github.com/emscripten-core/emsdk.git
emsdk/emsdk install latest
emsdk/emsdk activate latest
- name: Build emscripten
run: |
source emsdk/emsdk_env.sh
matmake2/build/matmake2 -t em test