Skip to content

Commit 08cb045

Browse files
committed
chore: microsoft github actions
1 parent e3e6911 commit 08cb045

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/build.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
env:
2+
EM_VERSION: 1.39.18
3+
EM_CACHE_FOLDER: 'emsdk-cache'
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: Setup cache
11+
id: cache-system-libraries
12+
uses: actions/cache@v2
13+
with:
14+
path: ${{env.EM_CACHE_FOLDER}}
15+
key: ${{env.EM_VERSION}}-${{ runner.os }}
16+
- uses: mymindstorm/setup-emsdk@v14
17+
with:
18+
version: ${{env.EM_VERSION}}
19+
actions-cache-folder: ${{env.EM_CACHE_FOLDER}}
20+
- name: Build AudioEngine
21+
run: emcc -std=c++11 -lembind -s ALLOW_MEMORY_GROWTH -s EXPORTED_FUNCTIONS="['_malloc', '_free']" -s AUDIO_WORKLET=1 -s WASM_WORKERS=1 -O3 --emit-tsd audioengine.ts.d -o build/audioengine.js audioengine.cpp
22+
- name: Upload artifact
23+
uses: actions/upload-pages-artifact@v3
24+
with:
25+
path: ./build

0 commit comments

Comments
 (0)