Add sway and wl-clipboard dependencies to GitHub CI workflow

This commit is contained in:
rrcgat 2023-04-17 16:44:43 +08:00
parent 8871b95559
commit aa2e662995
No known key found for this signature in database
GPG Key ID: 8A5698D402519CF8
2 changed files with 11 additions and 2 deletions

View File

@ -22,7 +22,8 @@ set -e
if [[ $(uname) != CYGWIN* ]]; then
sudo apt-get -qq install libfreetype6-dev liblcms2-dev python3-tk\
ghostscript libffi-dev libjpeg-turbo-progs libopenjp2-7-dev\
cmake meson imagemagick libharfbuzz-dev libfribidi-dev
cmake meson imagemagick libharfbuzz-dev libfribidi-dev\
sway wl-clipboard
fi
python3 -m pip install --upgrade pip

View File

@ -84,7 +84,15 @@ jobs:
python3 -m pip install pytest-reverse
fi
if [ "${{ matrix.os }}" = "ubuntu-latest" ]; then
xvfb-run -s '-screen 0 1024x768x24' .ci/test.sh
export XDG_RUNTIME_DIR="/tmp/headless-sway"
export SWAYSOCK="$XDG_RUNTIME_DIR/sway.sock"
export WLR_BACKENDS=headless
export WLR_LIBINPUT_NO_DEVICES=1
mkdir "$XDG_RUNTIME_DIR"
xvfb-run -s '-screen 0 1024x768x24'\
sway -V -d -c /dev/null&
export WAYLAND_DISPLAY=wayland-1
.ci/test.sh
else
.ci/test.sh
fi