Skip to content

Commit

Permalink
chore: microsoft github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
fucksophie committed Jan 3, 2025
1 parent e3e6911 commit 08cb045
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
env:
EM_VERSION: 1.39.18
EM_CACHE_FOLDER: 'emsdk-cache'

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- 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@v14
with:
version: ${{env.EM_VERSION}}
actions-cache-folder: ${{env.EM_CACHE_FOLDER}}
- name: Build AudioEngine
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
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./build

0 comments on commit 08cb045

Please sign in to comment.