forked from Ludwigstrasse/SolidDesigner
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (37 loc) · 1.24 KB
/
c-cpp.yml
File metadata and controls
48 lines (37 loc) · 1.24 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
46
47
48
name: C/C++ CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository(with submodules over SSH)
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 1
ssh-key: ${{ secrets.ALICE_DEPLOY_KEY }}
- name: Ensure submodules are initialized
run: |
git submodule sync --recursive
git submodule update --init --recursive --depth 1
git submodule status
git submodule foreach --recursive 'echo "== $name =="; git remote -v'
- name: Install Qt5 (Ubuntu)
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
qtbase5-dev qtbase5-dev-tools qt5-qmake \
qttools5-dev qttools5-dev-tools \
libqt5svg5-dev\
qtdeclarative5-dev \
qtquickcontrols2-5-dev\
python3 \
uuid-dev
- name: Configure with CMake (headless)
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DSD_BUILD_DESIGNER=ON -DSD_BUILD_DEMOS=ON -DQt5_DIR=/usr/lib/x86_64-linux-gnu/cmake/Qt5
- name: Build
run: cmake --build build --config Release --parallel