refactor(flatpak): retire heuristic cache scanner, adopt build-ops capture (#5599)

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
James Rich
2026-05-26 04:24:25 -07:00
committed by GitHub
parent d51552122f
commit 2fa11507c5
15 changed files with 521 additions and 496 deletions
+11 -3
View File
@@ -370,13 +370,21 @@ jobs:
gradle_encryption_key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
cache_read_only: 'true'
# Uses an isolated Gradle user home so every artifact actually traverses the
# network — meshtastic.flatpak-ops captures URLs via BuildOperationListener and
# only sees ExternalResourceReadBuildOperation events for cache misses. With the
# shared cache, downloads would be skipped and the manifest would be (nearly) empty.
- name: Generate Flatpak Sources
run: >
./gradlew :desktopApp:assemble :generateFlatpakSourcesFromCache
--no-configuration-cache
./gradlew --no-build-cache --no-configuration-cache
-Dgradle.user.home=${{ runner.temp }}/flatpak-gradle-home
:desktopApp:assemble :captureFlatpakSources
- name: Stage manifest
run: cp build/flatpak-ops-sources.json flatpak-sources.json
- name: List Flatpak source files
run: ls -R flatpak-sources.json
run: ls -l flatpak-sources.json
- name: Upload Flatpak source artifacts
if: always()
+8 -3
View File
@@ -575,11 +575,16 @@ jobs:
gradle_encryption_key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
cache_read_only: true
# Isolated Gradle user home — see explanation in release.yml.
- name: Generate Flatpak Sources
run: >
./gradlew :desktopApp:assemble :generateFlatpakSourcesFromCache
--no-configuration-cache --refresh-dependencies
./gradlew --no-build-cache --no-configuration-cache
-Dgradle.user.home=${{ runner.temp }}/flatpak-gradle-home
:desktopApp:assemble :captureFlatpakSources
- name: Stage manifest
run: cp build/flatpak-ops-sources.json flatpak-sources.json
- run: ls -lah flatpak-sources.json
- name: Upload Flatpak Sources