summaryrefslogtreecommitdiffstatshomepage
path: root/.github
diff options
context:
space:
mode:
authorJim Mussared <jim.mussared@gmail.com>2023-02-03 00:44:57 +1100
committerDamien George <damien@micropython.org>2023-02-24 11:50:28 +1100
commit7c6a9856ea9755fc27f6e46656154a8d38f4596d (patch)
tree927319e0b6ad8fc9648ee194a45918feab90befd /.github
parentce9f7cd00ab683e6b9a56d519525ba9d0fab63d0 (diff)
downloadmicropython-7c6a9856ea9755fc27f6e46656154a8d38f4596d.tar.gz
micropython-7c6a9856ea9755fc27f6e46656154a8d38f4596d.zip
github/workflows: Add workflow to build mpremote wheel.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/mpremote.yml31
1 files changed, 31 insertions, 0 deletions
diff --git a/.github/workflows/mpremote.yml b/.github/workflows/mpremote.yml
new file mode 100644
index 0000000000..e5fd47350f
--- /dev/null
+++ b/.github/workflows/mpremote.yml
@@ -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