GeezerVison is showing github.com — ci(release): Linux desktop builds reuse cached AppImage, FPM, and 7-Z… · AndryHTC/t3code@ca920d5
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/release-desktop.yml +14Lines changed: 14 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -210,6 +210,20 @@ jobs: |
210 | 210 | native/hyprland-snap-shot/target/${{ inputs.rust_target }}/release/t3-hyprland-snap-shot |
211 | 211 | key: linux-capture-helpers-${{ inputs.rust_target }}-${{ hashFiles('native/kde-snap-shot/Cargo.lock', 'native/kde-snap-shot/Cargo.toml', 'native/kde-snap-shot/src/**', 'native/hyprland-snap-shot/Cargo.lock', 'native/hyprland-snap-shot/Cargo.toml', 'native/hyprland-snap-shot/src/**', 'native/hyprland-snap-shot/protocols/**') }} |
212 | 212 |
|
| 213 | + # Every Linux build makes electron-builder fetch the AppImage runtime, FPM |
| 214 | + # for the deb, and the 7-Zip that unpacks FPM from GitHub releases. It |
| 215 | + # checks an archive found here against the SHA-256 pinned in those toolset |
| 216 | + # files and downloads again on a mismatch, so only raw archives are cached. |
| 217 | + - name: Cache Linux packaging tool archives |
| 218 | + if: inputs.platform == 'linux' |
| 219 | + uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6 |
| 220 | + with: |
| 221 | + path: | |
| 222 | + ~/.cache/electron-builder/appimage@*/appimage-tools-runtime-*.tar.gz |
| 223 | + ~/.cache/electron-builder/fpm@*/fpm-*.7z |
| 224 | + ~/.cache/electron-builder/7zip@*/7zip-linux-*.tar.gz |
| 225 | + key: electron-builder-linux-tools-${{ inputs.arch }}-${{ hashFiles('node_modules/.pnpm/app-builder-lib@*/node_modules/app-builder-lib/out/toolsets/linux.js', 'node_modules/.pnpm/app-builder-lib@*/node_modules/app-builder-lib/out/toolsets/7zip.js') }} |
| 226 | + |
213 | 227 | - name: Ensure Rosetta for macOS x64 bytecode generation |
214 | 228 | if: inputs.platform == 'mac' && inputs.arch == 'x64' |
215 | 229 | shell: bash |
|