Skip to content

Commit c1526d2

Browse files
committed
github/workflows: Add workflow to build all packages.
Signed-off-by: Damien George <damien@micropython.org>
1 parent e3059a9 commit c1526d2

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

.github/workflows/build_packages.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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

tools/ci.sh

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,29 @@ function ci_code_formatting_setup {
1414
function 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+
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy