File tree Expand file tree Collapse file tree 14 files changed +23
-18
lines changed Expand file tree Collapse file tree 14 files changed +23
-18
lines changed Original file line number Diff line number Diff line change 1
- name : javascript port
1
+ name : webassembly port
2
2
3
3
on :
4
4
push :
9
9
- ' py/**'
10
10
- ' extmod/**'
11
11
- ' lib/**'
12
- - ' ports/javascript /**'
12
+ - ' ports/webassembly /**'
13
13
14
14
jobs :
15
15
build :
16
16
runs-on : ubuntu-latest
17
17
steps :
18
18
- uses : actions/checkout@v2
19
19
- name : Install packages
20
- run : source tools/ci.sh && ci_javascript_setup
20
+ run : source tools/ci.sh && ci_webassembly_setup
21
21
- name : Build
22
- run : source tools/ci.sh && ci_javascript_build
22
+ run : source tools/ci.sh && ci_webassembly_build
23
23
- 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
51
51
52
52
test : $(BUILD ) /micropython.js $(TOP ) /tests/run-tests.py
53
53
$(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
55
55
56
56
include $(TOP ) /py/mkrules.mk
Original file line number Diff line number Diff line change 1
- MicroPython.js
2
- ==============
1
+ MicroPython WebAssembly
2
+ =======================
3
3
4
- MicroPython transmuted into Javascript by Emscripten .
4
+ MicroPython for [ WebAssembly ] ( https://webassembly.org/ ) .
5
5
6
6
Dependencies
7
7
------------
8
8
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).
11
16
12
17
Build instructions
13
18
------------------
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 105
105
#define MICROPY_PY_MICROPYTHON_MEM_INFO (1)
106
106
#define MICROPY_PY_ARRAY_SLICE_ASSIGN (1)
107
107
#define MICROPY_PY_COLLECTIONS_ORDEREDDICT (1)
108
- #define MICROPY_PY_SYS_PLATFORM "javascript "
108
+ #define MICROPY_PY_SYS_PLATFORM "webassembly "
109
109
#define MICROPY_PY_UERRNO (1)
110
110
#define MICROPY_PY_UCTYPES (1)
111
111
#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