Skip to content

Commit c277991

Browse files
committed
Refactor linux-appimage.yml to build and install blueprint-compiler directly in the workflow, improving build process efficiency.
1 parent 372668f commit c277991

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.github/workflows/linux-appimage.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,15 @@ jobs:
2929
python -m pip install --upgrade pip
3030
python -m pip install --user "appimage-builder==0.8.2"
3131
echo "$HOME/.local/bin" >> $GITHUB_PATH
32+
33+
- name: Build and install blueprint-compiler (v0.18.0)
34+
run: |
35+
git clone --depth=1 --branch v0.18.0 https://gitlab.gnome.org/GNOME/blueprint-compiler.git
36+
cd blueprint-compiler
37+
meson setup build
38+
ninja -C build
39+
sudo meson install -C build
40+
which blueprint-compiler && blueprint-compiler --version
3241
3342
- name: Build AppImage
3443
run: |

AppImageBuilder.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,8 @@ AppDir:
5656
- usr/lib/pkgconfig
5757

5858
script:
59-
- git clone --depth=1 --branch v0.18.0 https://gitlab.gnome.org/GNOME/blueprint-compiler.git
60-
- cd blueprint-compiler && meson setup build && ninja -C build && meson install -C build --destdir ../AppDir && cd ..
61-
- env PATH="$PWD/AppDir/usr/local/bin:$PWD/AppDir/usr/bin:$PATH" meson setup --prefix=/usr builddir
62-
- env PATH="$PWD/AppDir/usr/local/bin:$PWD/AppDir/usr/bin:$PATH" meson install -C builddir --destdir AppDir
59+
- meson setup --prefix=/usr builddir
60+
- meson install -C builddir --destdir AppDir
6361
- glib-compile-schemas AppDir/usr/share/glib-2.0/schemas || true
6462

6563
AppImage:

0 commit comments

Comments
 (0)