From 004177ef20cf21e96a07604ab92361781890bca0 Mon Sep 17 00:00:00 2001 From: Thomas Date: Wed, 18 Nov 2026 18:25:48 -0500 Subject: [PATCH 1/2] ci: keep the container's Flatpak installation on a volume so runtime updates work Flatpak can't move a runtime that ships in the CI image aside on the image's layered filesystem, so updating the SDK failed with "Invalid cross-device link" and flatpak-builder crashed. --- .github/workflows/publish-flatpak.yml | 4 ++++ .github/workflows/validate-flatpak.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/publish-flatpak.yml b/.github/workflows/publish-flatpak.yml index dd46523..53c79dc 100644 --- a/.github/workflows/publish-flatpak.yml +++ b/.github/workflows/publish-flatpak.yml @@ -40,6 +40,10 @@ jobs: container: image: ghcr.io/flathub-infra/flatpak-github-actions:freedesktop-25.08 options: --privileged + # Updating a runtime that ships in the image fails with "Invalid cross-device link" on the + # image's layered filesystem. A volume starts as a copy of the image's installation. + volumes: + - /var/lib/flatpak environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} diff --git a/.github/workflows/validate-flatpak.yml b/.github/workflows/validate-flatpak.yml index dcc0600..be75bcc 100644 --- a/.github/workflows/validate-flatpak.yml +++ b/.github/workflows/validate-flatpak.yml @@ -46,6 +46,10 @@ jobs: container: image: ghcr.io/flathub-infra/flatpak-github-actions:freedesktop-25.08 options: --privileged + # Updating a runtime that ships in the image fails with "Invalid cross-device link" on the + # image's layered filesystem. A volume starts as a copy of the image's installation. + volumes: + - /var/lib/flatpak steps: - name: Check out repository uses: actions/checkout@v6 From 5983ef9ae54ce76656adc6347a960f3bdc5a8c66 Mon Sep 17 00:00:00 2001 From: Thomas Date: Wed, 18 Nov 2026 18:30:06 -0500 Subject: [PATCH 2/2] ci: finish git's cleanup before flatpak-builder copies its mirrors A background git gc repacked the cached T3 Code mirror while flatpak-builder copied it, so the copy lost a pack file. --- .github/workflows/publish-flatpak.yml | 5 +++++ .github/workflows/validate-flatpak.yml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/publish-flatpak.yml b/.github/workflows/publish-flatpak.yml index 53c79dc..db88915 100644 --- a/.github/workflows/publish-flatpak.yml +++ b/.github/workflows/publish-flatpak.yml @@ -52,6 +52,11 @@ jobs: - name: Check out repository uses: actions/checkout@v6 + # flatpak-builder copies its cached git mirrors right after fetching them, while a + # background `git gc` could still be repacking them. + - name: Run git gc before fetches return + run: git config --global gc.autoDetach false + - name: Import repository signing key id: signing uses: crazy-max/ghaction-import-gpg@v7 diff --git a/.github/workflows/validate-flatpak.yml b/.github/workflows/validate-flatpak.yml index be75bcc..87394a9 100644 --- a/.github/workflows/validate-flatpak.yml +++ b/.github/workflows/validate-flatpak.yml @@ -54,6 +54,11 @@ jobs: - name: Check out repository uses: actions/checkout@v6 + # flatpak-builder copies its cached git mirrors right after fetching them, while a + # background `git gc` could still be repacking them. + - name: Run git gc before fetches return + run: git config --global gc.autoDetach false + - name: Build and test Flatpak uses: flatpak/flatpak-github-actions/flatpak-builder@v6 with: