-
Notifications
You must be signed in to change notification settings - Fork 2
65 lines (55 loc) · 1.66 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Emscripten
on:
push:
branches: [ develop, master ]
pull_request:
branches: [ develop, master ]
jobs:
build:
runs-on: ubuntu-latest
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
EM_VERSION: 2.0.12
EM_CACHE_FOLDER: 'emsdk-cache'
steps:
- uses: actions/checkout@v2
with:
submodules: "recursive"
- name: Setup cache
id: cache-system-libraries
uses: actions/cache@v2
with:
path: ${{env.EM_CACHE_FOLDER}}
key: ${{env.EM_VERSION}}-${{ runner.os }}
- uses: mymindstorm/setup-emsdk@v7
with:
version: ${{env.EM_VERSION}}
actions-cache-folder: ${{env.EM_CACHE_FOLDER}}
- name: Run CMake
run: |
cd "${{ github.workspace }}"
mkdir build
cd build
emcmake cmake -DCMAKE_BUILD_TYPE=Debug -DSTRESS_GC=ON ../
- name: Run Make
run: |
cd "${{ github.workspace }}/build"
make
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: melon-emscripten-${{ env.BUILD_BITS }}
path: |
${{ github.workspace }}/build/melon.js
${{ github.workspace }}/build/assembler.js
${{ github.workspace }}/build/disassembler.js
${{ github.workspace }}/build/tests.js
${{ github.workspace }}/build/tests.html
- name: Print version
run: |
cd "${{ github.workspace }}/build"
node melon.js --version
- name: Run Tests
run: |
cd "${{ github.workspace }}/build"
node tests.js