Visitar URL original
Provide experimental builds with static runtime · linuxdeploy/linuxdeploy@0d90bed · GitHub
Skip to content

Commit 0d90bed

Browse files
committed
Provide experimental builds with static runtime
1 parent a0d545c commit 0d90bed

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

‎.github/workflows/main.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ jobs:
1414
matrix:
1515
ARCH: [x86_64, i386]
1616
BUILD_TYPE: [appimage, coverage]
17+
include:
18+
- ARCH: x86_64
19+
BUILD_TYPE: appimage
20+
USE_STATIC_RUNTIME: 1
1721
fail-fast: false
1822

1923
name: ${{ matrix.BUILD_TYPE }} ${{ matrix.ARCH }}
@@ -22,6 +26,7 @@ jobs:
2226
env:
2327
ARCH: ${{ matrix.ARCH }}
2428
BUILD_TYPE: ${{ matrix.BUILD_TYPE }}
29+
USE_STATIC_RUNTIME: ${{ matrix.USE_STATIC_RUNTIME }}
2530

2631
steps:
2732
- uses: actions/checkout@v2

‎ci/build.sh‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,14 @@ ln -s ../../plugins/linuxdeploy-plugin-appimage/AppRun AppDir/usr/bin/linuxdeplo
7979
export UPD_INFO="gh-releases-zsync|linuxdeploy|linuxdeploy|continuous|linuxdeploy-$ARCH.AppImage.zsync"
8080
export OUTPUT="linuxdeploy-$ARCH.AppImage"
8181

82+
# special set of builds using a different experimental runtime, used for testing purposes
83+
if [[ "$USE_STATIC_RUNTIME" != "" ]]; then
84+
export OUTPUT="linuxdeploy-static-$ARCH.AppImage"
85+
wget https://github.com/AppImage/type2-runtime/releases/download/continuous/runtime-"$ARCH"
86+
runtime_filename="$(echo "$CUSTOM_RUNTIME_URL" | rev | cut -d/ -f1 | rev)"
87+
export LDAI_RUNTIME_FILE"$(readlink -f "$runtime_filename")"
88+
fi
89+
8290
# build AppImage using plugin
8391
AppDir/usr/bin/linuxdeploy-plugin-appimage --appdir AppDir/
8492

0 commit comments

Comments
 (0)