File tree Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : .mpy file format and tools
2
+
3
+ on :
4
+ push :
5
+ pull_request :
6
+ paths :
7
+ - ' .github/workflows/*.yml'
8
+ - ' tools/**'
9
+
10
+ jobs :
11
+ test :
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - uses : actions/checkout@v2
15
+ - name : Install packages
16
+ run : source tools/ci.sh && ci_mpy_format_setup
17
+ - name : Test mpy-tool.py
18
+ run : source tools/ci.sh && ci_mpy_format_test
Original file line number Diff line number Diff line change @@ -67,6 +67,23 @@ function ci_code_size_build {
67
67
tools/metrics.py build bm | tee ~ /size1
68
68
}
69
69
70
+ # #######################################################################################
71
+ # .mpy file format
72
+
73
+ function ci_mpy_format_setup {
74
+ sudo pip3 install pyelftools
75
+ }
76
+
77
+ function ci_mpy_format_test {
78
+ # Test mpy-tool.py dump feature on bytecode
79
+ python2 ./tools/mpy-tool.py -xd ports/minimal/frozentest.mpy
80
+ python3 ./tools/mpy-tool.py -xd ports/minimal/frozentest.mpy
81
+
82
+ # Test mpy-tool.py dump feature on native code
83
+ make -C examples/natmod/features1
84
+ ./tools/mpy-tool.py -xd examples/natmod/features1/features1.mpy
85
+ }
86
+
70
87
# #######################################################################################
71
88
# ports/cc3200
72
89
You can’t perform that action at this time.
0 commit comments