mirror of https://github.com/YosysHQ/yosys.git
Fix race condition: wait for Linux wheel in latest before macOS upload
The macOS job could upload to the latest release before the Linux job recreated it, causing the macOS wheel to be lost. Now wait for the Linux wheel to appear in latest first. Made-with: Cursor
This commit is contained in:
parent
d62702bd70
commit
83862bda99
|
|
@ -152,7 +152,9 @@ jobs:
|
|||
echo "Upload attempt $i failed, retrying in 15s..."
|
||||
sleep 15
|
||||
done
|
||||
until gh release view latest >/dev/null 2>&1; do sleep 5; done
|
||||
# Wait for the Linux job to finish creating the latest release with its wheel
|
||||
echo "Waiting for Linux wheel to appear in latest release..."
|
||||
until gh release view latest --json assets --jq '.assets[].name' 2>/dev/null | grep -q linux; do sleep 10; done
|
||||
for i in 1 2 3 4 5; do
|
||||
gh release upload latest dist/*.whl --clobber && break
|
||||
echo "Upload attempt $i failed, retrying in 15s..."
|
||||
|
|
|
|||
Loading…
Reference in New Issue