Skip to content

Commit 22ae00b

Browse files
committed
CI/CD - dump screenshots
1 parent 5ac9174 commit 22ae00b

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

.github/workflows/build_linux_gcc_qt5.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)