-
Notifications
You must be signed in to change notification settings - Fork 50
47 lines (39 loc) · 1.22 KB
/
emcc.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
name: Build with EMCC
on:
push:
pull_request:
types: [opened, reopened]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Configure emcc
uses: mymindstorm/setup-emsdk@v14
with:
actions-cache-folder: 'emsdk-cache'
- name: Build non-SIMD and Debug
run: |
cd build
emcmake cmake .. --fresh -DOJPH_DISABLE_SIMD=ON -DCMAKE_BUILD_TYPE=Debug
cmake --build . --config Debug --clean-first
cd ..
- name: Build non-SIMD and Release
run: |
cd build
emcmake cmake .. --fresh -DOJPH_DISABLE_SIMD=ON -DCMAKE_BUILD_TYPE=Release
cmake --build . --config Release --clean-first
cd ..
- name: Build SIMD and Debug
run: |
cd build
emcmake cmake .. --fresh -DOJPH_DISABLE_SIMD=OFF -DCMAKE_BUILD_TYPE=Debug
cmake --build . --config Debug --clean-first
cd ..
- name: Build SIMD and Release
run: |
cd build
emcmake cmake .. --fresh -DOJPH_DISABLE_SIMD=OFF -DCMAKE_BUILD_TYPE=Release
cmake --build . --config Release --clean-first
cd ..