2023-02-02 13:44:57 +00:00
|
|
|
name: Package mpremote
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- '.github/workflows/*.yml'
|
|
|
|
- 'tools/**'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-02-24 20:05:45 +00:00
|
|
|
- uses: actions/checkout@v3
|
2023-02-02 13:44:57 +00:00
|
|
|
with:
|
|
|
|
# Version is determined from git,
|
|
|
|
# should be deep enough to get to latest tag
|
|
|
|
fetch-depth: '1000'
|
|
|
|
- run: |
|
|
|
|
git fetch --prune --unshallow --tags
|
2023-02-24 20:05:39 +00:00
|
|
|
- uses: actions/setup-python@v4
|
2023-02-02 13:44:57 +00:00
|
|
|
- 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
|