Skip to content

Commit 48309aa

Browse files
committed
fix(ci): correct artifact paths in build-sea workflow
Applied same artifact path fix as build-smol to prevent potential issues. Changes: - Upload entire packages/ directory to preserve structure - Download directly to packages/ directory - Simplified verification (no manual moving needed) This ensures build script can find bootstrap at expected paths.
1 parent df21fac commit 48309aa

File tree

1 file changed

+5
-25
lines changed

1 file changed

+5
-25
lines changed

.github/workflows/build-sea.yml

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,7 @@ jobs:
7878
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
7979
with:
8080
name: build-deps-${{ github.sha }}
81-
path: |
82-
packages/bootstrap/dist/
83-
packages/socket/dist/
81+
path: packages/
8482
retention-days: 1
8583

8684
build-sea:
@@ -131,36 +129,18 @@ jobs:
131129
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
132130
with:
133131
name: build-deps-${{ github.sha }}
134-
path: .
132+
path: packages/
135133

136134
- name: Verify build artifacts
137135
shell: bash
138136
run: |
139137
echo "=== Verifying downloaded build artifacts ==="
140-
echo "Directory structure after download:"
141-
find bootstrap socket -maxdepth 3 -type f -name "*.js" -o -name "*.mjs" 2>/dev/null | head -20 || echo "No files found at root"
142-
find packages/bootstrap packages/socket -maxdepth 3 -type f -name "*.js" -o -name "*.mjs" 2>/dev/null | head -20 || echo "No files found in packages/"
143-
144-
# Check both possible locations and move if needed
145-
if [ -f bootstrap/dist/bootstrap-npm.js ]; then
146-
echo "✓ Artifacts found at root level, moving to packages/"
147-
mkdir -p packages/bootstrap/dist packages/socket/dist
148-
mv bootstrap/dist/* packages/bootstrap/dist/ 2>/dev/null || true
149-
mv socket/dist/* packages/socket/dist/ 2>/dev/null || true
150-
elif [ -f packages/bootstrap/dist/bootstrap-npm.js ]; then
151-
echo "✓ Artifacts already in correct location"
152-
else
153-
echo "❌ ERROR: bootstrap-npm.js not found in any expected location!"
154-
exit 1
155-
fi
156-
157-
# Final verification
158138
echo ""
159-
echo "Final verification:"
139+
echo "Checking for required files:"
160140
ls -lh packages/bootstrap/dist/bootstrap-npm.js && echo "✓ bootstrap-npm.js present" || (echo "❌ bootstrap-npm.js missing" && exit 1)
161141
ls -lh packages/socket/dist/bootstrap.js && echo "✓ socket bootstrap.js present" || (echo "❌ socket bootstrap.js missing" && exit 1)
162-
163-
echo "✓ All build artifacts verified and in correct location"
142+
echo ""
143+
echo "✓ Bootstrap artifacts verified"
164144
165145
- name: Setup Node.js
166146
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0

0 commit comments

Comments
 (0)