Added EVSE-side plug API #26
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: WebAssembly | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
compile-esmscripten: | |
name: Compile for WebAssembly | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Set up emscripten | |
uses: mymindstorm/setup-emsdk@v11 | |
- name: Verify | |
run: emcc -v | |
- name: Generate CMake files | |
run: emcmake cmake -S . -B ./build | |
- name: Compile | |
run: cmake --build ./build -j 16 --target mo_simulator_wasm |