mirror of
https://github.com/micropython/micropython.git
synced 2026-04-25 02:10:24 +02:00
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:
committed by
Damien George
parent
295df7c0b4
commit
da0149f629
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user