CI: ubuntu:24.04-container + källkodsfallback för gtk4-layer-shell
Some checks failed
check / check (push) Failing after 8s
Some checks failed
check / check (push) Failing after 8s
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -15,15 +15,29 @@ on:
|
||||
jobs:
|
||||
check:
|
||||
runs-on: ubuntu-latest
|
||||
container: ubuntu:24.04
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install toolchain + GTK4 deps
|
||||
run: |
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
apt-get update -qq
|
||||
apt-get install -y -qq curl build-essential pkg-config \
|
||||
libgtk-4-dev libgtk4-layer-shell-dev
|
||||
apt-get install -y -qq curl build-essential pkg-config git \
|
||||
libgtk-4-dev meson ninja-build wayland-protocols libwayland-dev
|
||||
# gtk4-layer-shell: paket om det finns, annars källkodsbygge
|
||||
if ! apt-get install -y -qq libgtk4-layer-shell-dev; then
|
||||
git clone --depth 1 https://github.com/wmww/gtk4-layer-shell.git /tmp/g4ls
|
||||
meson setup /tmp/g4ls/build /tmp/g4ls \
|
||||
-Dintrospection=false -Dvapi=false -Dexamples=false \
|
||||
-Ddocs=false -Dtests=false
|
||||
ninja -C /tmp/g4ls/build install
|
||||
ldconfig
|
||||
arch_dir=$(gcc -dumpmachine)
|
||||
echo "PKG_CONFIG_PATH=/usr/local/lib/${arch_dir}/pkgconfig:/usr/local/lib/pkgconfig" >> "$GITHUB_ENV"
|
||||
echo "LD_LIBRARY_PATH=/usr/local/lib/${arch_dir}:/usr/local/lib" >> "$GITHUB_ENV"
|
||||
fi
|
||||
curl -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal \
|
||||
--component clippy
|
||||
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
|
||||
|
||||
Reference in New Issue
Block a user