github/workflows: Add workflow to build mpremote wheel.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
pull/10645/head
Jim Mussared 2023-02-03 00:44:57 +11:00 zatwierdzone przez Damien George
rodzic ce9f7cd00a
commit 7c6a9856ea
1 zmienionych plików z 31 dodań i 0 usunięć

31
.github/workflows/mpremote.yml vendored 100644
Wyświetl plik

@ -0,0 +1,31 @@
name: Package mpremote
on:
push:
pull_request:
paths:
- '.github/workflows/*.yml'
- 'tools/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
# Version is determined from git,
# should be deep enough to get to latest tag
fetch-depth: '1000'
- run: |
git fetch --prune --unshallow --tags
- uses: actions/setup-python@v1
- name: Install build tools
run: pip install build
- name: Build mpremote wheel
run: cd tools/mpremote && python -m build --wheel
- name: Archive mpremote wheel
uses: actions/upload-artifact@v2
with:
name: mpremote
path: |
tools/mpremote/dist/mpremote*.whl