fix(ci): simplify system deps, add build output listing
Build and Release / build-and-release (push) Failing after 1m16s

This commit is contained in:
2026-04-03 17:10:07 -07:00
parent 41e7515519
commit d6093bb5ec
+17 -10
View File
@@ -43,17 +43,12 @@ jobs:
with:
node-version: '22'
- name: Install system dependencies
- name: Install Wine (for Windows cross-compilation)
if: steps.version-check.outputs.SKIP == 'false'
run: |
sudo dpkg --add-architecture i386
sudo apt-get update -qq
sudo apt-get install -y --no-install-recommends \
wine wine32 wine64 \
libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2t64 \
libdrm2 libxkbcommon0 libxcomposite1 libxdamage1 \
libxfixes3 libxrandr2 libgbm1 libpango-1.0-0 \
libcairo2 libasound2t64 libgtk-3-0
sudo apt-get install -y --no-install-recommends wine64 wine32
WINEDEBUG=-all wine wineboot --init || true
- name: Install dependencies
@@ -74,6 +69,12 @@ jobs:
if: steps.version-check.outputs.SKIP == 'false'
run: npx electron-builder --linux --publish never
- name: List build output
if: steps.version-check.outputs.SKIP == 'false'
run: |
echo "=== Build output ==="
ls -lh out/ 2>/dev/null || echo "No out/ directory"
- name: Create release and upload assets
if: steps.version-check.outputs.SKIP == 'false'
env:
@@ -106,16 +107,22 @@ jobs:
fi
# Upload all built artifacts
UPLOADED=0
for file in out/*.exe out/*.AppImage out/*.deb; do
[ -f "$file" ] || continue
FILENAME=$(basename "$file")
MIME="application/octet-stream"
echo "Uploading: $FILENAME ($(du -h "$file" | cut -f1))"
curl -s -X POST "${UPLOAD_URL}?name=${FILENAME}" \
-H "$AUTH" \
-H "Content-Type: $MIME" \
-H "Content-Type: application/octet-stream" \
--data-binary "@$file" \
| jq -r '" -> \(.name) (\(.size) bytes)"'
UPLOADED=$((UPLOADED + 1))
done
echo "All assets uploaded"
if [ "$UPLOADED" -eq 0 ]; then
echo "WARNING: No artifacts found in out/"
ls -la out/ 2>/dev/null || true
fi
echo "Uploaded $UPLOADED assets"