-
-
Notifications
You must be signed in to change notification settings - Fork 15
56 lines (46 loc) · 1.65 KB
/
qmake.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
# Author: Kang Lin<[email protected]>
name: build_qmake
on:
push:
pull_request:
jobs:
build_qmake:
name: build mingw
strategy:
matrix:
BUILD_TYPE: [Release, Debug]
# See: https://docs.github.com/zh/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners
# See: https://github.com/actions/runner-images/
runs-on: ubuntu-latest
env:
BUILD_TYPE: ${{ matrix.BUILD_TYPE }}
SOURCE_DIR: ${{github.workspace}}/.cache/source
TOOSL_DIR: ${{github.workspace}}/.cache/tools
INSTALL_DIR: ${{github.workspace}}/.cache/install_qmake
RabbitCommon_VERSION: 2.2.6
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: Make directories
run: |
cmake -E make_directory ${{env.SOURCE_DIR}}
cmake -E make_directory ${{env.TOOSL_DIR}}
cmake -E make_directory ${{env.INSTALL_DIR}}
cmake -E make_directory ${{github.workspace}}/build
- name: Install apt packages
run: |
sudo apt update -y
sudo apt upgrade -y
sudo apt install -y -q cmake build-essential xvfb xpra \
libglu1-mesa-dev libpulse-mainloop-glib0 \
debhelper fakeroot \
qttools5-dev qttools5-dev-tools qtbase5-dev qtbase5-dev-tools \
qtmultimedia5-dev qtlocation5-dev libqt5svg5-dev \
libcmark-gfm-dev libcmark-gfm-extensions-dev
- name: Build RabbitCommon
working-directory: ${{github.workspace}}/build
run: |
qmake ${{github.workspace}}
make