-
Notifications
You must be signed in to change notification settings - Fork 13
70 lines (70 loc) · 2.44 KB
/
buildqmake.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
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Build on Latest Platform with QMake
on:
push:
branches:
- master
- commonlib
- dev
paths-ignore:
- 'docs/**'
- '**.markdown'
- '**.md'
- 'LICENSE'
pull_request:
branches:
- master
- commonlib
- dev
paths-ignore:
- 'docs/**'
- '**.markdown'
- '**.md'
- 'LICENSE'
jobs:
build:
name: Build ${{ matrix.platforms.friendly_name }} Qt${{ matrix.qt.qt_ver }}
runs-on: ${{ matrix.platforms.os }}
strategy:
fail-fast: false
matrix:
qt:
- { qt_ver: 5.15.2, mingw_arch: win64_mingw81 }
- { qt_ver: 6.3.1, mingw_arch: win64_mingw }
platforms:
- { os: windows-latest, generator: nmake, friendly_name: MSVC }
- { os: windows-latest, generator: mingw32-make, friendly_name: MinGW }
- { os: ubuntu-latest, generator: make, friendly_name: Ubuntu }
- { os: macos-latest, generator: make, friendly_name: MacOS }
steps:
- name: Install Qt
if: ${{ matrix.platforms.friendly_name != 'MinGW' }}
uses: jurplel/install-qt-action@v2
with:
version: ${{ matrix.qt.qt_ver }}
- name: Install Qt MinGW
if: ${{ matrix.platforms.friendly_name == 'MinGW' }}
uses: jurplel/install-qt-action@v2
with:
version: ${{ matrix.qt.qt_ver }}
arch: ${{ matrix.qt.mingw_arch }}
- name: Upgrade MinGW
if: ${{ matrix.platforms.friendly_name == 'MinGW' }}
run: |
choco upgrade mingw
- name: Git Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up MSVC environment
if: ${{ matrix.platforms.friendly_name == 'MSVC' }}
uses: ilammy/msvc-dev-cmd@v1
- name: Install Linux Dependencies
if: ${{ runner.os == 'Linux' }}
run: |
sudo apt-get update -y
sudo apt-get install libxcb-icccm4 libxcb-xkb1 libxcb-icccm4 libxcb-image0 libxcb-render-util0 libxcb-randr0 libxcb-keysyms1 libxcb-xinerama0 libxcb-xinput-dev
- name: ${{ matrix.platforms.friendly_name }} Qt${{ matrix.qt.qt_ver }}
shell: pwsh
run: |
qmake QtSimpleChat.pro
${{ matrix.platforms.generator }}