github: Improve error on "Build mpremote wheel" if fork is missing tags.

Avoids a vague error from the 'vcs' versioning scheme if recent tags
haven't been pushed to the fork.

This work was funded through GitHub Sponsors.

Signed-off-by: Angus Gratton <angus@redyak.com.au>
This commit is contained in:
Angus Gratton
2026-03-25 15:25:31 +11:00
committed by Damien George
parent 295df7c0b4
commit da0149f629
+11 -1
View File
@@ -20,7 +20,17 @@ jobs:
- name: Install build tools
run: pip install build
- name: Build mpremote wheel
run: cd tools/mpremote && python -m build --wheel
run: |
if ! git rev-parse --verify -q v1.23.0 >/dev/null; then
echo "::error::mpremote wheel build requires recent MicroPython version tags in the forked repo."
echo ""
echo "To fix, push tags from upstream:"
echo " git remote add upstream https://github.com/micropython/micropython.git"
echo " git fetch upstream --tags"
echo " git push origin --tags"
exit 1
fi
cd tools/mpremote && python -m build --wheel
- name: Archive mpremote wheel
uses: actions/upload-artifact@v7
with: