Skip to content

Commit

Permalink
Add sway and wl-clipboard dependencies to GitHub CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rrcgat committed Apr 17, 2023
1 parent 8871b95 commit aa2e662
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .ci/install.sh
Expand Up @@ -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
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/test.yml
Expand Up @@ -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
Expand Down

0 comments on commit aa2e662

Please sign in to comment.