File tree Expand file tree Collapse file tree 2 files changed +17
-6
lines changed Expand file tree Collapse file tree 2 files changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -73,12 +73,17 @@ jobs:
73
73
- name : Install CCache
74
74
run : |
75
75
source $BUILD_TOOLS
76
- build_deps
76
+ apt_install_build_deps
77
77
78
78
- name : Checkout MicroPython & Submodules
79
79
run : |
80
80
source $BUILD_TOOLS
81
- clone_micropython
81
+ micropython_clone
82
+
83
+ - name : Build MPY Cross
84
+ run : |
85
+ source $BUILD_TOOLS
86
+ micropython_build_mpy_cross
82
87
83
88
- name : " HACK: CMakeLists.txt Disable C++ Exceptions Patch"
84
89
shell : bash
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ function log_warning {
12
12
echo -e " $( tput setaf 1) $1 $( tput sgr0) "
13
13
}
14
14
15
- function clone_micropython {
15
+ function micropython_clone {
16
16
log_inform " Using MicroPython $MICROPYTHON_VERSION "
17
17
git clone https://github.com/micropython/micropython --depth=1 --branch=$MICROPYTHON_VERSION
18
18
cd micropython
@@ -23,12 +23,18 @@ function clone_micropython {
23
23
git submodule update --init lib/micropython-lib
24
24
git submodule update --init lib/tinyusb
25
25
git submodule update --init lib/btstack
26
- cd mpy-cross
27
- make
26
+ cd ../
27
+ }
28
+
29
+ function micropython_build_mpy_cross {
30
+ cd micropython/mpy-cross
31
+ ccache --zero-stats || true
32
+ CROSS_COMPILE=" ccache " make
33
+ ccache --show-stats || true
28
34
cd ../../
29
35
}
30
36
31
- function build_deps {
37
+ function apt_install_build_deps {
32
38
sudo apt update && sudo apt install ccache
33
39
}
34
40
You can’t perform that action at this time.
0 commit comments