[CI] Better test xcb and wayland-only builds

This commit is contained in:
lbonn 2023-09-25 15:34:06 +02:00
parent b8dedc8836
commit a51940c1fb
2 changed files with 34 additions and 12 deletions

View file

@ -1,6 +1,14 @@
name: CI Build Setup
description: Sets up build dependencies
inputs:
xcb:
description: Install xcb dependencies
default: 'true'
wayland:
description: Install wayland dependencies
default: 'true'
runs:
using: composite
steps:
@ -21,17 +29,6 @@ runs:
jq \
lcov \
libpango1.0-dev \
libstartup-notification0-dev \
libwayland-dev \
libxcb-ewmh-dev \
libxcb-icccm4-dev \
libxcb-randr0-dev \
libxcb-util0-dev \
libxcb-xinerama0-dev \
libxcb-xkb-dev \
libxcb-xrm-dev \
libxcb-cursor-dev \
libxcb-imdkit-dev \
libxkbcommon-dev \
libxkbcommon-dev \
libxkbcommon-x11-dev \
@ -41,12 +38,33 @@ runs:
python3-wheel \
texi2html \
texinfo \
wayland-protocols \
xdotool \
xfonts-base \
xterm \
xutils-dev
shell: bash
- id: apt-wayland
if: ${{ inputs.wayland == 'true' }}
run: |
sudo apt-get install -y \
libwayland-dev \
wayland-protocols
shell: bash
- id: apt-xcb
if: ${{ inputs.xcb == 'true' }}
run: |
sudo apt-get install -y \
libstartup-notification0-dev \
libxcb-ewmh-dev \
libxcb-icccm4-dev \
libxcb-randr0-dev \
libxcb-util0-dev \
libxcb-xinerama0-dev \
libxcb-xkb-dev \
libxcb-xrm-dev \
libxcb-cursor-dev \
libxcb-imdkit-dev
shell: bash
- id: check
run: |
curl -L https://github.com/libcheck/check/releases/download/0.14.0/check-0.14.0.tar.gz | tar xzf -

View file

@ -42,6 +42,8 @@ jobs:
with:
submodules: recursive
- uses: ./.github/actions/setup
with:
xcb: false
- uses: ./.github/actions/meson
with:
cc: gcc
@ -53,6 +55,8 @@ jobs:
with:
submodules: recursive
- uses: ./.github/actions/setup
with:
wayland: false
- uses: ./.github/actions/meson
with:
cc: gcc