forked from micropython/micropython-lib
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (26 loc) · 980 Bytes
/
build_packages.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Build all packages
on: [push, pull_request]
env:
PACKAGE_INDEX_PATH: /tmp/micropython-lib-deploy
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- name: Setup environment
run: source tools/ci.sh && ci_build_packages_setup
- name: Check manifest files
run: source tools/ci.sh && ci_build_packages_check_manifest
- name: Compile package index
run: source tools/ci.sh && ci_build_packages_compile_index
- name: Compile package examples
run: source tools/ci.sh && ci_build_packages_examples
- name: Publish packages for branch
if: vars.MICROPY_PUBLISH_MIP_INDEX && github.event_name == 'push' && ! github.event.deleted
run: source tools/ci.sh && ci_push_package_index
- name: Upload packages as artifact
uses: actions/upload-artifact@v3
with:
name: packages-${{ github.sha }}
path: ${{ env.PACKAGE_INDEX_PATH }}