Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 73 additions & 0 deletions .github/workflows/build-desktop-platforms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,69 @@ jobs:
retry ./gradlew :composeApp:packageDeb :composeApp:packageRpm
shell: bash

- name: Build Linux AppImage
if: matrix.label == 'modern'
run: |
set -euo pipefail

retry() {
local n=1
local max=3
local delay=5
while true; do
echo "Attempt #$n: $*"
if "$@"; then
break
fi
if [ $n -ge $max ]; then
echo "Command failed after $n attempts."
return 1
fi
n=$((n+1))
echo "Command failed — retrying in $delay seconds..."
sleep $delay
delay=$((delay*2))
done
}

retry ./gradlew :composeApp:packageAppImage
shell: bash

- name: List AppImage build output
if: matrix.label == 'modern'
run: |
echo "=== Listing build output ==="
find composeApp/build/compose/binaries/main -maxdepth 3 -type d 2>/dev/null || echo "Directory not found"
echo "=== All files ==="
find composeApp/build/compose/binaries/main -maxdepth 4 -type f 2>/dev/null | head -30 || echo "No files found"
shell: bash

- name: Package AppImage as tar.gz
if: matrix.label == 'modern'
run: |
set -euo pipefail

# Find the app-image output directory (could be app-image/ or app/)
APPIMAGE_DIR=""
for dir in composeApp/build/compose/binaries/main/app-image composeApp/build/compose/binaries/main/app; do
if [ -d "$dir" ]; then
APPIMAGE_DIR="$dir"
echo "Found AppImage output at: $dir"
break
fi
done

if [ -z "$APPIMAGE_DIR" ]; then
echo "ERROR: Could not find AppImage output directory"
ls -la composeApp/build/compose/binaries/main/ || true
exit 1
fi

tar -czf composeApp/build/compose/binaries/main/GitHub-Store-linux-x64.tar.gz -C "$APPIMAGE_DIR" .
echo "Created tar.gz archive:"
ls -lh composeApp/build/compose/binaries/main/GitHub-Store-linux-x64.tar.gz
shell: bash

- name: Upload Linux installers
uses: actions/upload-artifact@v4
with:
Expand All @@ -214,4 +277,14 @@ jobs:
composeApp/build/compose/binaries/main/deb/*.deb
composeApp/build/compose/binaries/main/rpm/*.rpm
retention-days: 30
compression-level: 6

- name: Upload Linux AppImage
if: matrix.label == 'modern'
uses: actions/upload-artifact@v4
with:
name: linux-appimage
path: composeApp/build/compose/binaries/main/GitHub-Store-linux-x64.tar.gz
if-no-files-found: error
retention-days: 30
compression-level: 6
Loading