-
Notifications
You must be signed in to change notification settings - Fork 9
36 lines (32 loc) · 1008 Bytes
/
c-cpp.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
name: C/C++ CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: sudo apt-get install tree cmake qt4-dev-tools qtbase5-dev libxss-dev libxrandr-dev
- name: Build
run: |
export CWD=`pwd`
mkdir $CWD/build-release-qt5
cd $CWD/build-release-qt5
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ..
make
make DESTDIR=`pwd`/pkg install
tree pkg
mkdir $CWD/build-debug-qt5
cd $CWD/build-debug-qt5
cmake -DCMAKE_BUILD_TYPE=Debug ..
make
mkdir $CWD/build-release-qt4
cd $CWD/build-release-qt4
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DUSE_QT5=off ..
make
make DESTDIR=`pwd`/pkg install
tree pkg
mkdir $CWD/build-debug-qt4
cd $CWD/build-debug-qt4
cmake -DCMAKE_BUILD_TYPE=Debug -DUSE_QT5=off ..
make