Skip to content

Commit

Permalink
let's try use Xvfb
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-w committed Jan 15, 2024
1 parent 8ecda7a commit 6dc6cc0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/ci-unix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,15 @@ jobs:
pkg install -y cmake qt5-buildtools qt5-charts qt5-concurrent qt5-core qt5-declarative qt5-gui qt5-location qt5-multimedia qt5-network qt5-opengl qt5-qmake qt5-script qt5-serialport qt5-widgets qt5-testlib qt5-linguisttools qxlsx exiv2 nlopt perl5 xorg-vfbserver gettext
run: |
export DISPLAY=:0
mkdir builds
cd builds
cmake -DCMAKE_BUILD_TYPE=Debug -DENABLE_TESTING=On -DENABLE_SHOWMYSKY=Off -DENABLE_QTWEBENGINE=Off "${{ github.workspace }}"
make -j3
Xvfb :1 -screen 0 1024x768x24 &
Xvfb :0 -ac -screen 0 1024x768x24+32 >/dev/null 2>&1 &
sleep 3
DISPLAY=:1 ctest --output-on-failure
ctest --output-on-failure
local xvfb_pids=`ps aux | grep Xvfb | grep -v grep | awk '{print $2}'`
if [ "$xvfb_pids" != "" ]; then
kill $xvfb_pids
fi

0 comments on commit 6dc6cc0

Please sign in to comment.