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-09-04 20:42:14 +01:00
|
|
|
- uses: actions/checkout@v4
|
2023-02-02 13:44:57 +00:00
|
|
|
with:
|
2023-04-27 01:31:03 +01:00
|
|
|
# Setting this to zero means fetch all history and tags,
|
|
|
|
# which hatch-vcs can use to discover the version tag.
|
|
|
|
fetch-depth: 0
|
2023-12-06 19:50:28 +00:00
|
|
|
- uses: actions/setup-python@v5
|
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
|
2023-12-14 19:37:54 +00:00
|
|
|
uses: actions/upload-artifact@v4
|
2023-02-02 13:44:57 +00:00
|
|
|
with:
|
|
|
|
name: mpremote
|
|
|
|
path: |
|
|
|
|
tools/mpremote/dist/mpremote*.whl
|