File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,11 +25,26 @@ jobs:
2525 tcllib tklib tcl-dev tk-dev \
2626 libtbb-dev \
2727 qtbase5-dev qtdeclarative5-dev qml-module-qtquick-controls2 qml-module-qtquick-templates2 \
28- xvfb
28+ xvfb x11-apps imagemagick
2929 - name : Configure project
3030 run : |
3131 mkdir "build"
3232 cmake -G Ninja -S . -B "./build" -D QT_VERSION=Qt5
3333 - name : Build project
3434 run : |
3535 cmake --build "./build" --config Release
36+ - name : Run tests
37+ run : |
38+ pushd ./build
39+ Xvfb :99 -screen 0 800x600x24 &
40+ sleep 2
41+ DISPLAY=:99 ./occt-qwidget/occt-qwidget-sample &
42+ sleep 2
43+ DISPLAY=:99 xwd -root -silent | convert xwd:- png:./occt-qwidget.png
44+ killall -9 occt-qwidget-sample Xvfb
45+ popd
46+ - name : Upload artifacts
47+ uses : actions/upload-artifact@v4
48+ with :
49+ name : occt-qwidget
50+ path : ./build/occt-qwidget.png
You can’t perform that action at this time.
0 commit comments