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,25 @@ 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 imagemagic
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+ DISPLAY=:99 ./occt-qwidget-sample/occt-qwidget-sample &
41+ sleep 2
42+ DISPLAY=:99 xwd -root -silent | convert xwd:- png:./occt-qwidget.png
43+ killall -9 occt-qwidget-sample Xvfb
44+ popd
45+ - name : Upload artifacts
46+ uses : actions/upload-artifact@v4
47+ with :
48+ name : occt-qwidget
49+ path : ./build/occt-qwidget.png
You can’t perform that action at this time.
0 commit comments