File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : javascript port
1+ name : webassembly port
22
33on :
44 push :
99 - ' py/**'
1010 - ' extmod/**'
1111 - ' lib/**'
12- - ' ports/javascript /**'
12+ - ' ports/webassembly /**'
1313
1414jobs :
1515 build :
1616 runs-on : ubuntu-latest
1717 steps :
1818 - uses : actions/checkout@v2
1919 - name : Install packages
20- run : source tools/ci.sh && ci_javascript_setup
20+ run : source tools/ci.sh && ci_webassembly_setup
2121 - name : Build
22- run : source tools/ci.sh && ci_javascript_build
22+ run : source tools/ci.sh && ci_webassembly_build
2323 - name : Run tests
24- run : source tools/ci.sh && ci_javascript_run_tests
24+ run : source tools/ci.sh && ci_webassembly_run_tests
Original file line number Diff line number Diff line change @@ -51,6 +51,6 @@ min: $(BUILD)/micropython.js
5151
5252test : $(BUILD ) /micropython.js $(TOP ) /tests/run-tests.py
5353 $(eval DIRNAME=ports/$(notdir $(CURDIR ) ) )
54- cd $(TOP ) /tests && MICROPY_MICROPYTHON=../ports/javascript /node_run.sh ./run-tests.py -j1
54+ cd $(TOP ) /tests && MICROPY_MICROPYTHON=../ports/webassembly /node_run.sh ./run-tests.py -j1
5555
5656include $(TOP ) /py/mkrules.mk
Original file line number Diff line number Diff line change 1- MicroPython.js
2- ==============
1+ MicroPython WebAssembly
2+ =======================
33
4- MicroPython transmuted into Javascript by Emscripten .
4+ MicroPython for [ WebAssembly ] ( https://webassembly.org/ ) .
55
66Dependencies
77------------
88
9- Building micropython.js bears the same requirements as the standard MicroPython
10- ports with the addition of Emscripten (and uglify-js for the minified file).
9+ Building webassembly port bears the same requirements as the standard
10+ MicroPython ports with the addition of Emscripten (and uglify-js for the
11+ minified file).
12+
13+ The output includes ` micropython.js ` (a JavaScript wrapper for the
14+ MicroPython runtime) and ` firmware.wasm ` (actual MicroPython compiled to
15+ WASM).
1116
1217Build instructions
1318------------------
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 105105#define MICROPY_PY_MICROPYTHON_MEM_INFO (1)
106106#define MICROPY_PY_ARRAY_SLICE_ASSIGN (1)
107107#define MICROPY_PY_COLLECTIONS_ORDEREDDICT (1)
108- #define MICROPY_PY_SYS_PLATFORM "javascript "
108+ #define MICROPY_PY_SYS_PLATFORM "webassembly "
109109#define MICROPY_PY_UERRNO (1)
110110#define MICROPY_PY_UCTYPES (1)
111111#define MICROPY_PY_UZLIB (1)
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments