-
-
Notifications
You must be signed in to change notification settings - Fork 500
build(flatpak): add CI build job, update metainfo, fix JVM heap for runners #653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
7abfda4
68f2dc6
7845c54
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -506,9 +506,38 @@ jobs: | |
| retention-days: 30 | ||
| compression-level: 0 | ||
|
|
||
| build-flatpak: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Fetch commit SHAs for action version tags
echo "=== actions/checkout@v4 ==="
gh api repos/actions/checkout/git/refs/tags/v4 --jq '.object.sha'
echo "=== flatpak/flatpak-github-actions/flatpak-builder@v6 ==="
gh api repos/flatpak/flatpak-github-actions/git/refs/tags/flatpak-builder/v6 --jq '.object.sha' 2>/dev/null || \
echo "Note: flatpak-builder may use a different ref structure; check manually"
echo "=== actions/upload-artifact@v4 ==="
gh api repos/actions/upload-artifact/git/refs/tags/v4 --jq '.object.sha'Repository: OpenHub-Store/GitHub-Store Length of output: 506 🏁 Script executed: # Examine the workflow file around the mentioned lines
cat -n .github/workflows/build-desktop-platforms.yml | sed -n '125,135p'
cat -n .github/workflows/build-desktop-platforms.yml | sed -n '510,530p'Repository: OpenHub-Store/GitHub-Store Length of output: 1638 Pin action references to commit SHAs for supply chain security. Actions at lines 514, 517, and 526 are referenced by mutable tags ( Update:
🧰 Tools🪛 zizmor (1.25.2)[warning] 513-514: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false (artipacked) [error] 514-514: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy) (unpinned-uses) 🤖 Prompt for AI Agents |
||
| with: | ||
| persist-credentials: false | ||
|
|
||
| - name: Build Flatpak bundle | ||
| uses: flatpak/flatpak-github-actions/flatpak-builder@v6 | ||
| with: | ||
| bundle: GitHub-Store-x86_64.flatpak | ||
| manifest-path: packaging/flatpak/zed.rainxch.githubstore.yml | ||
| run-tests: false | ||
| upload-artifact: false | ||
| cache-key: flatpak-builder-${{ hashFiles('packaging/flatpak/flatpak-sources.json', 'packaging/flatpak/zed.rainxch.githubstore.yml') }} | ||
|
|
||
| - name: Upload Flatpak bundle | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: linux-flatpak | ||
| path: GitHub-Store-x86_64.flatpak | ||
| if-no-files-found: error | ||
| retention-days: 30 | ||
| compression-level: 0 | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
|
|
||
| release: | ||
| name: Draft release with all installers | ||
| needs: [sign-windows, build-macos, build-linux] | ||
| needs: [sign-windows, build-macos, build-linux, build-flatpak] | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: write | ||
|
|
@@ -572,6 +601,7 @@ jobs: | |
| linux_debian12_count=0 | ||
| linux_appimage_count=0 | ||
| linux_arch_count=0 | ||
| linux_flatpak_count=0 | ||
|
|
||
| # Windows — names already unique (.exe, .msi). Files come from the | ||
| # signed artifact, not the raw build output, so they carry the | ||
|
|
@@ -625,11 +655,17 @@ jobs: | |
| stage "$f" "$(basename "$f")" && linux_arch_count=$((linux_arch_count + 1)) || true | ||
| done < <(find artifacts/linux-arch -type f -name '*.pkg.tar.zst' 2>/dev/null) | ||
|
|
||
| # Linux Flatpak bundle (.flatpak) | ||
| while IFS= read -r f; do | ||
| [ -n "$f" ] || continue | ||
| stage "$f" "$(basename "$f")" && linux_flatpak_count=$((linux_flatpak_count + 1)) || true | ||
| done < <(find artifacts/linux-flatpak -type f -name '*.flatpak' 2>/dev/null) | ||
|
|
||
| echo | ||
| echo "Final staged files:" | ||
| ls -la release-files/ | ||
| echo | ||
| echo "Per-group counts: windows=$windows_count macos-x64=$macos_x64_count macos-arm64=$macos_arm64_count linux-modern=$linux_modern_count linux-debian12=$linux_debian12_count linux-appimage=$linux_appimage_count linux-arch=$linux_arch_count" | ||
| echo "Per-group counts: windows=$windows_count macos-x64=$macos_x64_count macos-arm64=$macos_arm64_count linux-modern=$linux_modern_count linux-debian12=$linux_debian12_count linux-appimage=$linux_appimage_count linux-arch=$linux_arch_count linux-flatpak=$linux_flatpak_count" | ||
|
|
||
| # Completeness guard: refuse to ship an incomplete release. Each | ||
| # group must produce >= 1 staged file. Without this guard, a build | ||
|
|
@@ -644,6 +680,7 @@ jobs: | |
| [ "$linux_debian12_count" -eq 0 ] && missing+=("Linux debian12-compat (.deb/.rpm)") | ||
| [ "$linux_appimage_count" -eq 0 ] && missing+=("Linux AppImage (.AppImage/.zsync)") | ||
| [ "$linux_arch_count" -eq 0 ] && missing+=("Linux Arch (.pkg.tar.zst)") | ||
| [ "$linux_flatpak_count" -eq 0 ] && missing+=("Linux Flatpak (.flatpak)") | ||
|
|
||
| if [ ${#missing[@]} -gt 0 ]; then | ||
| echo | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.