Skip to content

Commit de5b5ba

Browse files
committed
Add caching for AppRun runtime in linux-appimage.yml to improve build performance
1 parent 4e8621e commit de5b5ba

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/linux-appimage.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,24 @@ jobs:
4141
sudo meson install -C build
4242
which blueprint-compiler && env PATH="/usr/bin:$PATH" blueprint-compiler --version
4343
44+
- name: Warm AppRun runtime cache
45+
run: |
46+
set -euo pipefail
47+
mkdir -p appimage-builder-cache/runtime
48+
curl -fL --retry 5 --retry-all-errors \
49+
https://github.com/AppImageCrafters/AppRun/releases/download/v1.2.3/AppRun-Release-x86_64 \
50+
-o appimage-builder-cache/runtime/AppRun-Release-x86_64
51+
curl -fL --retry 5 --retry-all-errors \
52+
https://github.com/AppImageCrafters/AppRun/releases/download/v1.2.3/libapprun_hooks-Release-x86_64.so \
53+
-o appimage-builder-cache/runtime/libapprun_hooks-Release-x86_64.so
54+
file appimage-builder-cache/runtime/AppRun-Release-x86_64 | tee /dev/stderr
55+
file appimage-builder-cache/runtime/libapprun_hooks-Release-x86_64.so | tee /dev/stderr
56+
4457
- name: Build AppImage
4558
run: |
4659
export PATH="/usr/bin:$PATH"
4760
export PYTHON="/usr/bin/python3"
61+
export ARCH=x86_64
4862
appimage-builder --recipe AppImageBuilder.yml --skip-test
4963
5064
- name: Upload artifact

0 commit comments

Comments
 (0)