Skip to content

Commit e50e195

Browse files
committed
fix(build): remove wait for ios
1 parent c6a41c9 commit e50e195

1 file changed

Lines changed: 3 additions & 55 deletions

File tree

cross-platform/build.sh

Lines changed: 3 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,7 @@ echo "🖥️ Detected OS: $OS_TYPE"
2626

2727
# --- Trigger iOS builder FIRST on Ubuntu ---
2828
if [ "$OS_TYPE" = "ubuntu" ]; then
29-
echo "🚀 Triggering iOS Flutter Builder workflow first..."
30-
31-
# Install jq if needed (for JSON parsing)
32-
if ! command -v jq &> /dev/null; then
33-
echo "Installing jq..."
34-
sudo apt-get install jq -y > /dev/null 2>&1
35-
fi
29+
echo "🚀 Triggering iOS Flutter Builder workflow..."
3630

3731
# Install GitHub CLI if needed
3832
if ! command -v gh &> /dev/null; then
@@ -67,54 +61,8 @@ if [ "$OS_TYPE" = "ubuntu" ]; then
6761
exit 1
6862
fi
6963

70-
echo "✅ iOS builder workflow triggered successfully"
71-
72-
# Wait for workflow to complete
73-
echo "⏳ Waiting for iOS build to complete..."
74-
sleep 10
75-
76-
MAX_WAIT=1800 # 30 minutes
77-
ELAPSED=0
78-
POLL_INTERVAL=30
79-
80-
while [ $ELAPSED -lt $MAX_WAIT ]; do
81-
WORKFLOW_STATUS=$(gh run list \
82-
--repo "${OWNER_NAME}/flutter-ios-builder" \
83-
--workflow "iOS Builder (macOS)" \
84-
--branch "main" \
85-
--limit 1 \
86-
--json status,conclusion \
87-
--jq '.[0]')
88-
89-
if [ -z "$WORKFLOW_STATUS" ]; then
90-
echo "⏳ Workflow not started yet, waiting..."
91-
else
92-
STATUS=$(echo "$WORKFLOW_STATUS" | jq -r '.status')
93-
CONCLUSION=$(echo "$WORKFLOW_STATUS" | jq -r '.conclusion')
94-
95-
if [ "$STATUS" = "completed" ]; then
96-
if [ "$CONCLUSION" = "success" ]; then
97-
echo "✅ iOS build completed successfully!"
98-
break
99-
else
100-
echo "❌ iOS build failed with conclusion: $CONCLUSION"
101-
exit 1
102-
fi
103-
else
104-
echo "⏳ iOS build in progress (status: $STATUS)..."
105-
fi
106-
fi
107-
108-
sleep $POLL_INTERVAL
109-
ELAPSED=$((ELAPSED + POLL_INTERVAL))
110-
done
111-
112-
if [ $ELAPSED -ge $MAX_WAIT ]; then
113-
echo "⚠️ iOS build timed out after ${MAX_WAIT} seconds"
114-
exit 1
115-
fi
116-
117-
echo "🎯 iOS build complete. Continuing with Android build..."
64+
echo "✅ iOS builder workflow triggered successfully (running in parallel)"
65+
echo "🎯 Continuing with Android build..."
11866
fi
11967

12068
# --- Ensure Node.js & npm ---

0 commit comments

Comments
 (0)