File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -223,6 +223,41 @@ jobs:
223223 name : emlearn-micropython-build-macos
224224 path : dist
225225
226+ build-webassembly :
227+ runs-on : ubuntu-24.04
228+ env :
229+ MPY_DIR : ./micropython
230+ MICROPYTHON_BIN : ./micropython/ports/unix/build-nomodules/micropython
231+ steps :
232+ - uses : actions/checkout@v4
233+ with :
234+ submodules : true
235+ - name : Install OS dependencies
236+ run : sudo add-apt-repository universe
237+ - uses : actions/setup-python@v5
238+ with :
239+ python-version : ' 3.10'
240+ - uses : actions/checkout@v4
241+ with :
242+ repository : jonnor/micropython
243+ path : micropython
244+ ref : v1.26.1-emlearn
245+ - name : Install Python dependencies
246+ run : pip install -r requirements.txt
247+ - name : Setup MicroPython
248+ working-directory : micropython
249+ run : |
250+ source tools/ci.sh && ci_webassembly_setup
251+ - name : Build Webassembly
252+ run : |
253+ source ${MPY_DIR}/emsdk/emsdk_env.sh
254+ make webassembly V=1
255+ - name : Archive dist artifacts
256+ uses : actions/upload-artifact@v4
257+ with :
258+ name : emlearn-micropython-build-webassembly
259+ path : dist
260+
226261 deploy-pages :
227262 permissions :
228263 contents : write
You can’t perform that action at this time.
0 commit comments