File tree Expand file tree Collapse file tree 2 files changed +42
-0
lines changed Expand file tree Collapse file tree 2 files changed +42
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build all packages 
2+ 
3+ on : [push, pull_request] 
4+ 
5+ jobs :
6+  build :
7+  runs-on : ubuntu-latest 
8+  steps :
9+  - uses : actions/checkout@v2 
10+  - uses : actions/setup-python@v1 
11+  - name : Setup environment 
12+  run : source tools/ci.sh && ci_build_packages_setup 
13+  - name : Check manifest files 
14+  run : source tools/ci.sh && ci_build_packages_check_manifest 
15+  - name : Compile package index 
16+  run : source tools/ci.sh && ci_build_packages_compile_index 
Original file line number Diff line number Diff line change @@ -14,3 +14,29 @@ function ci_code_formatting_setup {
1414function  ci_code_formatting_run  {
1515 tools/codeformat.py -v
1616}
17+ 
18+ # #######################################################################################
19+ #  build packages
20+ 
21+ function  ci_build_packages_setup  {
22+  git clone https://github.com/micropython/micropython.git /tmp/micropython
23+ 
24+  #  build mpy-cross (use -O0 to speed up the build)
25+  make -C /tmp/micropython/mpy-cross -j CFLAGS_EXTRA=-O0
26+ 
27+  #  check the required programs run
28+  /tmp/micropython/mpy-cross/build/mpy-cross --version
29+  python3 /tmp/micropython/tools/manifestfile.py --help
30+ }
31+ 
32+ function  ci_build_packages_check_manifest  {
33+  for  file  in  $( find -name manifest.py) ;  do 
34+  echo  " ##################################################" 
35+  echo  " # Testing $file " 
36+  python3 /tmp/micropython/tools/manifestfile.py --lib .  --compile $file 
37+  done 
38+ }
39+ 
40+ function  ci_build_packages_compile_index  {
41+  python3 tools/build.py --micropython /tmp/micropython --output /tmp/micropython-lib-deploy
42+ }
                                 You can’t perform that action at this time. 
               
                  
0 commit comments