Skip to content

Commit 7c6a985

Browse files
jimmodpgeorge
authored andcommitted
github/workflows: Add workflow to build mpremote wheel.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
1 parent ce9f7cd commit 7c6a985

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/mpremote.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Package mpremote
2+
3+
on:
4+
push:
5+
pull_request:
6+
paths:
7+
- '.github/workflows/*.yml'
8+
- 'tools/**'
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
with:
16+
# Version is determined from git,
17+
# should be deep enough to get to latest tag
18+
fetch-depth: '1000'
19+
- run: |
20+
git fetch --prune --unshallow --tags
21+
- uses: actions/setup-python@v1
22+
- name: Install build tools
23+
run: pip install build
24+
- name: Build mpremote wheel
25+
run: cd tools/mpremote && python -m build --wheel
26+
- name: Archive mpremote wheel
27+
uses: actions/upload-artifact@v2
28+
with:
29+
name: mpremote
30+
path: |
31+
tools/mpremote/dist/mpremote*.whl

0 commit comments

Comments
 (0)