Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/wasm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Emscripten

on:
push:
branches:
- master
tags:
- v*
paths-ignore:
- 'docs/**'
- '**.md'
pull_request:
paths-ignore:
- '**.md'
- 'docs/**'

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
wasm:
name: WebAssembly
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v7

- name: Install dependencies
run: |
sudo apt update
sudo apt install -y ninja-build

- uses: mymindstorm/setup-emsdk@v14

# Build the library and the emscripten example so the WebMIDI backend
# (backends/emscripten/*) is actually compiled -- it is only ever built for
# wasm, so the native/mingw/android/etc. jobs never exercise it.
- name: Configure
run: |
emcmake cmake -S . -B build -GNinja \
-DCMAKE_BUILD_TYPE=Release \
-DLIBREMIDI_LIBRARY_MODE=LIBRARY \
-DLIBREMIDI_EXAMPLES=1

- name: Build
run: cmake --build build
2 changes: 1 addition & 1 deletion include/libremidi/backends/emscripten/midi_access.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ class midi_access_emscripten

for (auto& obs : m_observers)
{
obs->update(m_current_inputs, m_current_outputs);
obs->update(m_current_inputs, m_current_outputs, true);
}
}

Expand Down
Loading