Skip to content

Commit d42cd22

Browse files
committed
style(smol-builder): standardize terminal symbols and add ANSI colors
- Replace ❌ with ✗ (multiplication x, U+2717) per style guide - Add ANSI color codes to all terminal symbols in workflow output: - ✓ (checkmark) in green (\033[32m) - ✗ (x) in red (\033[31m) - ⚠ (warning) in yellow (\033[33m) - Replace ⚠️ (emoji variant) with ⚠ for consistency - Use echo -e to enable escape sequences Follows terminal symbol standards from CLAUDE.md: - ✓ Success/checkmark - green (NOT ✅) - ✗ Error/failure - red (NOT ❌) - ⚠ Warning/caution - yellow (NOT ⚠️)
1 parent b563308 commit d42cd22

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/build-smol.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ jobs:
182182
fi
183183
echo "should-run=$SHOULD_RUN" >> $GITHUB_OUTPUT
184184
if [ "$SHOULD_RUN" = "true" ]; then
185-
echo "✓ Building ${{ matrix.platform }}-${{ matrix.arch }}"
185+
echo -e "\033[32m✓\033[0m Building ${{ matrix.platform }}-${{ matrix.arch }}"
186186
else
187187
echo "⊘ Skipping ${{ matrix.platform }}-${{ matrix.arch }} (disabled by inputs)"
188188
fi
@@ -205,10 +205,10 @@ jobs:
205205
echo "=== Verifying downloaded bootstrap artifacts ==="
206206
echo ""
207207
echo "Checking for required files:"
208-
ls -lh packages/bootstrap/dist/bootstrap-smol.js && echo "✓ bootstrap-smol.js present" || (echo "❌ bootstrap-smol.js missing" && exit 1)
209-
ls -lh packages/socket/dist/bootstrap.js && echo "✓ socket bootstrap.js present" || (echo "❌ socket bootstrap.js missing" && exit 1)
208+
ls -lh packages/bootstrap/dist/bootstrap-smol.js && echo -e "\033[32m✓\033[0m bootstrap-smol.js present" || (echo -e "\033[31m✗\033[0m bootstrap-smol.js missing" && exit 1)
209+
ls -lh packages/socket/dist/bootstrap.js && echo -e "\033[32m✓\033[0m socket bootstrap.js present" || (echo -e "\033[31m✗\033[0m socket bootstrap.js missing" && exit 1)
210210
echo ""
211-
echo "✓ Bootstrap artifacts verified"
211+
echo -e "\033[32m✓\033[0m Bootstrap artifacts verified"
212212
213213
- name: Setup Node.js
214214
if: steps.check-platform.outputs.should-run == 'true'
@@ -285,7 +285,7 @@ jobs:
285285
286286
# Check checkpoint files exist.
287287
if [ ! -f "packages/node-smol-builder/build/.checkpoints/cloned" ]; then
288-
echo "⚠ Missing 'cloned' checkpoint"
288+
echo -e "\033[33m⚠\033[0m Missing 'cloned' checkpoint"
289289
CACHE_VALID="false"
290290
fi
291291
@@ -298,7 +298,7 @@ jobs:
298298
if [ -f "$BINARY_PATH" ]; then
299299
for checkpoint in cloned built complete; do
300300
if [ ! -f "packages/node-smol-builder/build/.checkpoints/$checkpoint" ]; then
301-
echo "❌ Incomplete cache: missing $checkpoint checkpoint but binary exists"
301+
echo -e "\033[31m✗\033[0m Incomplete cache: missing $checkpoint checkpoint but binary exists"
302302
CACHE_VALID="false"
303303
fi
304304
done
@@ -309,7 +309,7 @@ jobs:
309309
echo "::warning::Invalidating corrupted build cache..."
310310
rm -rf packages/node-smol-builder/build
311311
else
312-
echo "✓ Build cache integrity validated"
312+
echo -e "\033[32m✓\033[0m Build cache integrity validated"
313313
fi
314314
315315
- name: Verify smol binary cache
@@ -324,19 +324,19 @@ jobs:
324324
325325
if [ -f "$BINARY_PATH" ]; then
326326
echo "valid=true" >> $GITHUB_OUTPUT
327-
echo "✓ Smol binary cache valid: $BINARY_PATH"
327+
echo -e "\033[32m✓\033[0m Smol binary cache valid: $BINARY_PATH"
328328
329329
# Smoke test: verify binary can execute --version.
330330
if "$BINARY_PATH" --version >/dev/null 2>&1; then
331-
echo "✓ Binary smoke test passed (--version)"
331+
echo -e "\033[32m✓\033[0m Binary smoke test passed (--version)"
332332
else
333333
echo "::warning::Binary exists but failed smoke test, will rebuild"
334334
echo "valid=false" >> $GITHUB_OUTPUT
335335
rm -f "$BINARY_PATH"
336336
fi
337337
else
338338
echo "valid=false" >> $GITHUB_OUTPUT
339-
echo "✗ Smol binary cache invalid or missing: $BINARY_PATH"
339+
echo -e "\033[31m✗\033[0m Smol binary cache invalid or missing: $BINARY_PATH"
340340
fi
341341
342342
- name: Setup Python
@@ -452,7 +452,7 @@ jobs:
452452
echo "socket-smol-${{ matrix.platform }}-${{ matrix.arch }} size: $(du -h $BINARY_PATH | cut -f1)"
453453
fi
454454
else
455-
echo "⚠️ Binary not found at expected path"
455+
echo -e "\033[33m⚠\033[0m Binary not found at expected path"
456456
fi
457457
458458
- name: Upload smol binary

0 commit comments

Comments
 (0)