-
Notifications
You must be signed in to change notification settings - Fork 25
45 lines (44 loc) · 1.55 KB
/
build_linux_gcc_qt5.yml
File metadata and controls
45 lines (44 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Build (Linux/GCC/Qt5)
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
Ubuntu:
runs-on: ubuntu-24.04
steps:
- name: Clone Tree
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
g++ cmake ninja-build \
libocct-draw-dev libocct-visualization-dev libocct-ocaf-dev libocct-modeling-data-dev \
libocct-modeling-algorithms-dev libocct-foundation-dev libocct-data-exchange-dev \
libgl-dev libegl-dev \
tcllib tklib tcl-dev tk-dev \
libtbb-dev \
qtbase5-dev qtdeclarative5-dev qtquickcontrols2-5-dev \
qml-module-qtquick-controls2 qml-module-qtquick-templates2 \
xvfb scrot
- name: Configure project
run: |
mkdir "build"
cmake -G Ninja -S . -B "./build" -D QT_VERSION=Qt5
- name: Build project
run: |
cmake --build "./build" --config Release
- name: Run tests
run: |
xvfb-run --server-args="-screen 0 800x600x24" ./.github/workflows/screenshot.sh ./build/occt-qwidget/occt-qwidget-sample ./build/occt-qwidget.png 5
xvfb-run --server-args="-screen 0 800x600x24" ./.github/workflows/screenshot.sh ./build/occt-qopenglwidget/occt-qopenglwidget-sample ./build/occt-qopenglwidget.png 5
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: occt-qt5
path: ./build/*.png