-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (66 loc) · 1.65 KB
/
ubuntu.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
71
name: Ubuntu
# Qt官方没有linux平台的x86包
on:
# push代码时触发workflow
push:
branches:
- master
- main
tags:
- "*"
# 忽略README.md
paths-ignore:
- '*.md'
- 'LICENSE'
- 'Doxyfile.in'
- '.clang-format'
- '.git*'
- '.git*'
- '.github/workflows/macos.yml'
- '.github/workflows/windows.yml'
- 'scripts/windows*'
# pull_request时触发workflow
pull_request:
paths-ignore:
- '*.md'
- 'LICENSE'
- 'Doxyfile.in'
- '.clang-format'
- '.git*'
- '.github/workflows/macos.yml'
- '.github/workflows/windows.yml'
- 'scripts/windows*'
jobs:
build:
name: CI
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04]
qt_version: [5.15.2,6.3.0]
qt_arch: [gcc_64]
build_type: [Release]
exclude:
# Qt6.2.2 need GLIBC_2.28, ubuntu 18.04 have not.
- os: ubuntu-18.04
qt_version: 6.2.2
qt_arch: gcc_64
env:
targetName: exedemo
steps:
- name: Checkout Code
uses: actions/checkout@v2
with:
submodules: true
# 安装Qt
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: ${{ matrix.qt_version }}
modules: ${{ matrix.modules }}
- name: ubuntu install
run: sudo apt-get install libxkbcommon-dev
- name: ${{ matrix.os }} - ${{ matrix.qt_versionsionsion }} - Generate Dependencies and Build
run: |
cmake -S . -Bbuild -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
cmake --build build