-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (48 loc) · 1.45 KB
/
GitHubActions.yml
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
49
50
51
52
53
54
55
56
57
name: QtStudentDBManagerCI
on:
push:
branches: [ network ]
pull_request:
branches:
- master
- network
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
# Commented out alternative Qt installation steps
# - name: Install Qt
# run: |
# sudo apt-get update
# sudo apt-get install -y build-essential libgl1-mesa-dev git cmake gettext
# sudo apt-get install -y qt6*
# # sudo apt-get install -y qt6-base-dev qt6-network-dev qt6-qml-dev qt6-quick-dev qt6-sql-dev
# # sudo apt-get install -y qtbase6-dev qtdeclarative5-dev qtquickcontrols2-5-dev libqt5remoteobjects5-dev libqt5serialport5-dev libkf5config-dev
# # sudo apt-get install -y libkf5coreaddons-dev libkf5i18n-dev extra-cmake-modules
- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
version: '6.6.0'
- name: Create Build Directory
run: mkdir build
- name: Run CMake and build
run: |
cmake -B build -S .
make -C build
# Additional steps for running server, client, and sync, currently commented
# - name: Run Server
# run: ./build/server
#
# - name: Run Client
# run: ./build/client
#
# - name: Run Sync
# run: ./build/sync
- name: Uploading archive Dir to GH.
uses: actions/upload-artifact@v3
with:
path: build/