fix(ci): simplify system deps, add build output listing
Build and Release / build-and-release (push) Failing after 1m16s
Build and Release / build-and-release (push) Failing after 1m16s
This commit is contained in:
@@ -43,17 +43,12 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: '22'
|
node-version: '22'
|
||||||
|
|
||||||
- name: Install system dependencies
|
- name: Install Wine (for Windows cross-compilation)
|
||||||
if: steps.version-check.outputs.SKIP == 'false'
|
if: steps.version-check.outputs.SKIP == 'false'
|
||||||
run: |
|
run: |
|
||||||
sudo dpkg --add-architecture i386
|
sudo dpkg --add-architecture i386
|
||||||
sudo apt-get update -qq
|
sudo apt-get update -qq
|
||||||
sudo apt-get install -y --no-install-recommends \
|
sudo apt-get install -y --no-install-recommends wine64 wine32
|
||||||
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
|
|
||||||
WINEDEBUG=-all wine wineboot --init || true
|
WINEDEBUG=-all wine wineboot --init || true
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
@@ -74,6 +69,12 @@ jobs:
|
|||||||
if: steps.version-check.outputs.SKIP == 'false'
|
if: steps.version-check.outputs.SKIP == 'false'
|
||||||
run: npx electron-builder --linux --publish never
|
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
|
- name: Create release and upload assets
|
||||||
if: steps.version-check.outputs.SKIP == 'false'
|
if: steps.version-check.outputs.SKIP == 'false'
|
||||||
env:
|
env:
|
||||||
@@ -106,16 +107,22 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Upload all built artifacts
|
# Upload all built artifacts
|
||||||
|
UPLOADED=0
|
||||||
for file in out/*.exe out/*.AppImage out/*.deb; do
|
for file in out/*.exe out/*.AppImage out/*.deb; do
|
||||||
[ -f "$file" ] || continue
|
[ -f "$file" ] || continue
|
||||||
FILENAME=$(basename "$file")
|
FILENAME=$(basename "$file")
|
||||||
MIME="application/octet-stream"
|
|
||||||
echo "Uploading: $FILENAME ($(du -h "$file" | cut -f1))"
|
echo "Uploading: $FILENAME ($(du -h "$file" | cut -f1))"
|
||||||
curl -s -X POST "${UPLOAD_URL}?name=${FILENAME}" \
|
curl -s -X POST "${UPLOAD_URL}?name=${FILENAME}" \
|
||||||
-H "$AUTH" \
|
-H "$AUTH" \
|
||||||
-H "Content-Type: $MIME" \
|
-H "Content-Type: application/octet-stream" \
|
||||||
--data-binary "@$file" \
|
--data-binary "@$file" \
|
||||||
| jq -r '" -> \(.name) (\(.size) bytes)"'
|
| jq -r '" -> \(.name) (\(.size) bytes)"'
|
||||||
|
UPLOADED=$((UPLOADED + 1))
|
||||||
done
|
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"
|
||||||
|
|||||||
Reference in New Issue
Block a user